品类添加方法,构建体

day-06
Saisai Liu 2024-03-05 20:48:02 +08:00
parent 7597af50aa
commit a640ca19d2
111 changed files with 900 additions and 825 deletions

View File

@ -21,9 +21,9 @@ public class SysPasswordService {
@Autowired
private RedisService redisService;
private int maxRetryCount = CacheConstants.PASSWORD_MAX_RETRY_COUNT;
private final int maxRetryCount = CacheConstants.PASSWORD_MAX_RETRY_COUNT;
private Long lockTime = CacheConstants.PASSWORD_LOCK_TIME;
private final Long lockTime = CacheConstants.PASSWORD_LOCK_TIME;
@Autowired
private SysRecordLogService recordLogService;

View File

@ -21,134 +21,134 @@ public @interface Excel {
/**
* excel
*/
public int sort () default Integer.MAX_VALUE;
int sort() default Integer.MAX_VALUE;
/**
* Excel.
*/
public String name () default "";
String name() default "";
/**
* , : yyyy-MM-dd
*/
public String dateFormat () default "";
String dateFormat() default "";
/**
* (: 0=,1=,2=)
*/
public String readConverterExp () default "";
String readConverterExp() default "";
/**
*
*/
public String separator () default ",";
String separator() default ",";
/**
* BigDecimal :-1(BigDecimal)
*/
public int scale () default -1;
int scale() default -1;
/**
* BigDecimal :BigDecimal.ROUND_HALF_EVEN
*/
public int roundingMode () default BigDecimal.ROUND_HALF_EVEN;
int roundingMode() default BigDecimal.ROUND_HALF_EVEN;
/**
* excel
*/
public double height () default 14;
double height() default 14;
/**
* excel
*/
public double width () default 16;
double width() default 16;
/**
* ,% 90 90%
*/
public String suffix () default "";
String suffix() default "";
/**
* ,
*/
public String defaultValue () default "";
String defaultValue() default "";
/**
*
*/
public String prompt () default "";
String prompt() default "";
/**
* .
*/
public String[] combo () default {};
String[] combo() default {};
/**
* ,:list)
*/
public boolean needMerge () default false;
boolean needMerge() default false;
/**
* ,:,.
*/
public boolean isExport () default true;
boolean isExport() default true;
/**
* ,,
*/
public String targetAttr () default "";
String targetAttr() default "";
/**
* ,
*/
public boolean isStatistics () default false;
boolean isStatistics() default false;
/**
* 0 1
*/
public ColumnType cellType () default ColumnType.STRING;
ColumnType cellType() default ColumnType.STRING;
/**
*
*/
public IndexedColors headerBackgroundColor () default IndexedColors.GREY_50_PERCENT;
IndexedColors headerBackgroundColor() default IndexedColors.GREY_50_PERCENT;
/**
*
*/
public IndexedColors headerColor () default IndexedColors.WHITE;
IndexedColors headerColor() default IndexedColors.WHITE;
/**
*
*/
public IndexedColors backgroundColor () default IndexedColors.WHITE;
IndexedColors backgroundColor() default IndexedColors.WHITE;
/**
*
*/
public IndexedColors color () default IndexedColors.BLACK;
IndexedColors color() default IndexedColors.BLACK;
/**
*
*/
public HorizontalAlignment align () default HorizontalAlignment.CENTER;
HorizontalAlignment align() default HorizontalAlignment.CENTER;
/**
*
*/
public Class<?> handler () default ExcelHandlerAdapter.class;
Class<?> handler() default ExcelHandlerAdapter.class;
/**
*
*/
public String[] args () default {};
String[] args() default {};
/**
* 012
*/
Type type () default Type.ALL;
public enum Type {
enum Type {
ALL(0), EXPORT(1), IMPORT(2);
private final int value;
@ -161,7 +161,7 @@ public @interface Excel {
}
}
public enum ColumnType {
enum ColumnType {
NUMERIC(0), STRING(1), IMAGE(2);
private final int value;

View File

@ -43,9 +43,9 @@ public class ScheduleConstants {
*/
PAUSE("1");
private String value;
private final String value;
private Status (String value) {
Status(String value) {
this.value = value;
}

View File

@ -11,22 +11,22 @@ public class BaseException extends RuntimeException {
/**
*
*/
private String module;
private final String module;
/**
*
*/
private String code;
private final String code;
/**
*
*/
private Object[] args;
private final Object[] args;
/**
*
*/
private String defaultMessage;
private final String defaultMessage;
public BaseException (String module, String code, Object[] args, String defaultMessage) {
this.module = module;

View File

@ -10,9 +10,9 @@ import java.util.Arrays;
public class InvalidExtensionException extends FileUploadException {
private static final long serialVersionUID = 1L;
private String[] allowedExtension;
private String extension;
private String filename;
private final String[] allowedExtension;
private final String extension;
private final String filename;
public InvalidExtensionException (String[] allowedExtension, String extension, String filename) {
super("filename : [" + filename + "], extension : [" + extension + "], allowed extension : [" + Arrays.toString(allowedExtension) + "]");

View File

@ -8,7 +8,7 @@ package com.muyu.common.core.exception.job;
public class TaskException extends Exception {
private static final long serialVersionUID = 1L;
private Code code;
private final Code code;
public TaskException (String msg, Code code) {
this(msg, code, null);

View File

@ -27,11 +27,11 @@ public class CharsetKit {
/**
* ISO-8859-1
*/
public static final Charset CHARSET_ISO_8859_1 = Charset.forName(ISO_8859_1);
public static final Charset CHARSET_ISO_8859_1 = StandardCharsets.ISO_8859_1;
/**
* UTF-8
*/
public static final Charset CHARSET_UTF_8 = Charset.forName(UTF_8);
public static final Charset CHARSET_UTF_8 = StandardCharsets.UTF_8;
/**
* GBK
*/

View File

@ -24,7 +24,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
private static String[] parsePatterns = {
private static final String[] parsePatterns = {
"yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM",
"yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM",
"yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"};

View File

@ -23,6 +23,7 @@ import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
@ -212,11 +213,7 @@ public class ServletUtils {
* @return
*/
public static String urlEncode (String str) {
try {
return URLEncoder.encode(str, Constants.UTF8);
} catch (UnsupportedEncodingException e) {
return StringUtils.EMPTY;
}
return URLEncoder.encode(str, StandardCharsets.UTF_8);
}
/**
@ -227,11 +224,7 @@ public class ServletUtils {
* @return
*/
public static String urlDecode (String str) {
try {
return URLDecoder.decode(str, Constants.UTF8);
} catch (UnsupportedEncodingException e) {
return StringUtils.EMPTY;
}
return URLDecoder.decode(str, StandardCharsets.UTF_8);
}
/**

View File

@ -43,7 +43,7 @@ public final class SpringUtils implements BeanFactoryPostProcessor {
* @throws org.springframework.beans.BeansException
*/
public static <T> T getBean (Class<T> clz) throws BeansException {
T result = (T) beanFactory.getBean(clz);
T result = beanFactory.getBean(clz);
return result;
}

View File

@ -125,17 +125,17 @@ public class FileUtils {
String filename = fileName;
if (agent.contains("MSIE")) {
// IE浏览器
filename = URLEncoder.encode(filename, "utf-8");
filename = URLEncoder.encode(filename, StandardCharsets.UTF_8);
filename = filename.replace("+", " ");
} else if (agent.contains("Firefox")) {
// 火狐浏览器
filename = new String(fileName.getBytes(), "ISO8859-1");
} else if (agent.contains("Chrome")) {
// google浏览器
filename = URLEncoder.encode(filename, "utf-8");
filename = URLEncoder.encode(filename, StandardCharsets.UTF_8);
} else {
// 其它浏览器
filename = URLEncoder.encode(filename, "utf-8");
filename = URLEncoder.encode(filename, StandardCharsets.UTF_8);
}
return filename;
}
@ -197,15 +197,14 @@ public class FileUtils {
public static void setAttachmentResponseHeader (HttpServletResponse response, String realFileName) throws UnsupportedEncodingException {
String percentEncodedFileName = percentEncode(realFileName);
StringBuilder contentDispositionValue = new StringBuilder();
contentDispositionValue.append("attachment; filename=")
.append(percentEncodedFileName)
.append(";")
.append("filename*=")
.append("utf-8''")
.append(percentEncodedFileName);
String contentDispositionValue = "attachment; filename=" +
percentEncodedFileName +
";" +
"filename*=" +
"utf-8''" +
percentEncodedFileName;
response.setHeader("Content-disposition", contentDispositionValue.toString());
response.setHeader("Content-disposition", contentDispositionValue);
response.setHeader("download-filename", percentEncodedFileName);
}
@ -217,7 +216,7 @@ public class FileUtils {
* @return
*/
public static String percentEncode (String s) throws UnsupportedEncodingException {
String encode = URLEncoder.encode(s, StandardCharsets.UTF_8.toString());
String encode = URLEncoder.encode(s, StandardCharsets.UTF_8);
return encode.replaceAll("\\+", "%20");
}
}

View File

@ -124,7 +124,7 @@ public class EscapeUtil {
tmp.append(content.substring(lastPos));
lastPos = content.length();
} else {
tmp.append(content.substring(lastPos, pos));
tmp.append(content, lastPos, pos);
lastPos = pos;
}
}

View File

@ -225,7 +225,7 @@ public class IpUtils {
if (ip != null && ip.indexOf(",") > 0) {
final String[] ips = ip.trim().split(",");
for (String subIp : ips) {
if (false == isUnknown(subIp)) {
if (!isUnknown(subIp)) {
ip = subIp;
break;
}

View File

@ -121,7 +121,7 @@ public class ExcelUtil<T> {
/**
*
*/
private Map<Integer, Double> statistics = new HashMap<Integer, Double>();
private final Map<Integer, Double> statistics = new HashMap<Integer, Double>();
public ExcelUtil (Class<T> clazz) {
this.clazz = clazz;
@ -531,7 +531,7 @@ public class ExcelUtil<T> {
rowNo = isSubList() ? (i > 1 ? rowNo + 1 : rowNo + i) : i + 1 + rownum - startNo;
row = sheet.createRow(rowNo);
// 得到导出对象.
T vo = (T) list.get(i);
T vo = list.get(i);
Collection<?> subList = null;
if (isSubList()) {
if (isSubListValue(vo)) {
@ -913,7 +913,7 @@ public class ExcelUtil<T> {
public String dataFormatHandlerAdapter (Object value, Excel excel, Cell cell) {
try {
Object instance = excel.handler().newInstance();
Method formatMethod = excel.handler().getMethod("format", new Class[]{Object.class, String[].class, Cell.class, Workbook.class});
Method formatMethod = excel.handler().getMethod("format", Object.class, String[].class, Cell.class, Workbook.class);
value = formatMethod.invoke(instance, value, excel.args(), cell, this.wb);
} catch (Exception e) {
log.error("不能格式化数据 " + excel.handler(), e.getMessage());
@ -1200,7 +1200,7 @@ public class ExcelUtil<T> {
public Collection<?> getListCellValue (Object obj) {
Object value;
try {
value = subMethod.invoke(obj, new Object[]{});
value = subMethod.invoke(obj);
} catch (Exception e) {
return new ArrayList<Object>();
}
@ -1221,7 +1221,7 @@ public class ExcelUtil<T> {
getMethodName.append(name.substring(1));
Method method = null;
try {
method = pojoClass.getMethod(getMethodName.toString(), new Class[]{});
method = pojoClass.getMethod(getMethodName.toString());
} catch (Exception e) {
log.error("获取对象异常{}", e.getMessage());
}

View File

@ -24,7 +24,7 @@ public class ReflectUtils {
private static final String CGLIB_CLASS_SEPARATOR = "$$";
private static Logger logger = LoggerFactory.getLogger(ReflectUtils.class);
private static final Logger logger = LoggerFactory.getLogger(ReflectUtils.class);
/**
* Getter.
@ -113,7 +113,7 @@ public class ReflectUtils {
try {
return (E) method.invoke(obj, args);
} catch (Exception e) {
String msg = "method: " + method + ", obj: " + obj + ", args: " + args + "";
String msg = "method: " + method + ", obj: " + obj + ", args: " + args;
throw convertReflectionExceptionToUnchecked(msg, e);
}
}
@ -162,7 +162,7 @@ public class ReflectUtils {
}
return (E) method.invoke(obj, args);
} catch (Exception e) {
String msg = "method: " + method + ", obj: " + obj + ", args: " + args + "";
String msg = "method: " + method + ", obj: " + obj + ", args: " + args;
throw convertReflectionExceptionToUnchecked(msg, e);
}
}

View File

@ -46,8 +46,8 @@ public final class Base64 {
for (int i = 52, j = 0 ; i <= 61 ; i++, j++) {
lookUpBase64Alphabet[i] = (char) ('0' + j);
}
lookUpBase64Alphabet[62] = (char) '+';
lookUpBase64Alphabet[63] = (char) '/';
lookUpBase64Alphabet[62] = '+';
lookUpBase64Alphabet[63] = '/';
}
private static boolean isWhiteSpace (char octect) {
@ -82,7 +82,7 @@ public final class Base64 {
int fewerThan24bits = lengthDataBits % TWENTYFOURBITGROUP;
int numberTriplets = lengthDataBits / TWENTYFOURBITGROUP;
int numberQuartet = fewerThan24bits != 0 ? numberTriplets + 1 : numberTriplets;
char encodedData[] = null;
char[] encodedData = null;
encodedData = new char[numberQuartet * 4];
@ -161,7 +161,7 @@ public final class Base64 {
return new byte[0];
}
byte decodedData[] = null;
byte[] decodedData = null;
byte b1 = 0, b2 = 0, b3 = 0, b4 = 0;
char d1 = 0, d2 = 0, d3 = 0, d4 = 0;

View File

@ -17,9 +17,9 @@ public class Seq {
// 机器标识
private static final String machineCode = "A";
// 通用接口序列数
private static AtomicInteger commSeq = new AtomicInteger(1);
private static final AtomicInteger commSeq = new AtomicInteger(1);
// 上传接口序列数
private static AtomicInteger uploadSeq = new AtomicInteger(1);
private static final AtomicInteger uploadSeq = new AtomicInteger(1);
/**
*

View File

@ -353,22 +353,22 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
final StringBuilder builder = new StringBuilder(isSimple ? 32 : 36);
// time_low
builder.append(digits(mostSigBits >> 32, 8));
if (false == isSimple) {
if (!isSimple) {
builder.append('-');
}
// time_mid
builder.append(digits(mostSigBits >> 16, 4));
if (false == isSimple) {
if (!isSimple) {
builder.append('-');
}
// time_high_and_version
builder.append(digits(mostSigBits, 4));
if (false == isSimple) {
if (!isSimple) {
builder.append('-');
}
// variant_and_sequence
builder.append(digits(leastSigBits >> 48, 4));
if (false == isSimple) {
if (!isSimple) {
builder.append('-');
}
// node

View File

@ -14,15 +14,15 @@ public @interface DataScope {
/**
*
*/
public String deptAlias () default "";
String deptAlias() default "";
/**
*
*/
public String userAlias () default "";
String userAlias() default "";
/**
* @RequiresPermissions
*/
public String permission () default "";
String permission() default "";
}

View File

@ -109,8 +109,7 @@ public class DataScopeAspect {
if (StringUtils.isNotBlank(sqlString.toString())) {
Object params = joinPoint.getArgs()[0];
if (StringUtils.isNotNull(params) && params instanceof BaseEntity) {
BaseEntity baseEntity = (BaseEntity) params;
if (StringUtils.isNotNull(params) && params instanceof BaseEntity baseEntity) {
baseEntity.getParams().put(DATA_SCOPE, " AND (" + sqlString.substring(4) + ")");
}
}
@ -141,8 +140,7 @@ public class DataScopeAspect {
*/
private void clearDataScope (final JoinPoint joinPoint) {
Object params = joinPoint.getArgs()[0];
if (StringUtils.isNotNull(params) && params instanceof BaseEntity) {
BaseEntity baseEntity = (BaseEntity) params;
if (StringUtils.isNotNull(params) && params instanceof BaseEntity baseEntity) {
baseEntity.getParams().put(DATA_SCOPE, "");
}
}

View File

@ -17,30 +17,30 @@ public @interface Log {
/**
*
*/
public String title () default "";
String title() default "";
/**
*
*/
public BusinessType businessType () default BusinessType.OTHER;
BusinessType businessType() default BusinessType.OTHER;
/**
*
*/
public OperatorType operatorType () default OperatorType.MANAGE;
OperatorType operatorType() default OperatorType.MANAGE;
/**
*
*/
public boolean isSaveRequestData () default true;
boolean isSaveRequestData() default true;
/**
*
*/
public boolean isSaveResponseData () default true;
boolean isSaveResponseData() default true;
/**
*
*/
public String[] excludeParamNames () default {};
String[] excludeParamNames() default {};
}

View File

@ -169,12 +169,12 @@ public class LogAspect {
*/
private String argsArrayToString (Object[] paramsArray, String[] excludeParamNames) {
String params = "";
if (paramsArray != null && paramsArray.length > 0) {
if (paramsArray != null) {
for (Object o : paramsArray) {
if (StringUtils.isNotNull(o) && !isFilterObject(o)) {
try {
String jsonObj = JSON.toJSONString(o, excludePropertyPreFilter(excludeParamNames));
params += jsonObj.toString() + " ";
params += jsonObj + " ";
} catch (Exception e) {
}
}

View File

@ -9,6 +9,7 @@ import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.data.redis.serializer.SerializationException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
/**
* Redis使FastJson
@ -16,11 +17,11 @@ import java.nio.charset.Charset;
* @author muyu
*/
public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T> {
public static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");
public static final Charset DEFAULT_CHARSET = StandardCharsets.UTF_8;
static final Filter AUTO_TYPE_FILTER = JSONReader.autoTypeFilter(Constants.JSON_WHITELIST_STR);
private Class<T> clazz;
private final Class<T> clazz;
public FastJson2JsonRedisSerializer (Class<T> clazz) {
super();

View File

@ -25,5 +25,5 @@ public interface RemoteFileService {
* @return
*/
@PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public Result<SysFile> upload (@RequestPart(value = "file") MultipartFile file);
Result<SysFile> upload(@RequestPart(value = "file") MultipartFile file);
}

View File

@ -27,7 +27,7 @@ public interface RemoteLogService {
* @return
*/
@PostMapping("/operlog")
public Result<Boolean> saveLog (@RequestBody SysOperLog sysOperLog, @RequestHeader(SecurityConstants.FROM_SOURCE) String source) throws Exception;
Result<Boolean> saveLog(@RequestBody SysOperLog sysOperLog, @RequestHeader(SecurityConstants.FROM_SOURCE) String source) throws Exception;
/**
* 访
@ -38,5 +38,5 @@ public interface RemoteLogService {
* @return
*/
@PostMapping("/logininfor")
public Result<Boolean> saveLogininfor (@RequestBody SysLogininfor sysLogininfor, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
Result<Boolean> saveLogininfor(@RequestBody SysLogininfor sysLogininfor, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}

View File

@ -25,7 +25,7 @@ public interface RemoteUserService {
* @return
*/
@GetMapping("/user/info/{username}")
public Result<LoginUser> getUserInfo (@PathVariable("username") String username, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
Result<LoginUser> getUserInfo(@PathVariable("username") String username, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/**
*
@ -36,5 +36,5 @@ public interface RemoteUserService {
* @return
*/
@PostMapping("/user/register")
public Result<Boolean> registerUserInfo (@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
Result<Boolean> registerUserInfo(@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}

View File

@ -36,7 +36,7 @@ public class BlackListUrlFilter extends AbstractGatewayFilterFactory<BlackListUr
public static class Config {
private List<String> blacklistUrl;
private List<Pattern> blacklistUrlPattern = new ArrayList<>();
private final List<Pattern> blacklistUrlPattern = new ArrayList<>();
public boolean matchBlacklist (String url) {
return !blacklistUrlPattern.isEmpty() && blacklistUrlPattern.stream().anyMatch(p -> p.matcher(url).find());

View File

@ -34,8 +34,7 @@ public class GatewayExceptionHandler implements ErrorWebExceptionHandler {
if (ex instanceof NotFoundException) {
msg = "服务未找到";
} else if (ex instanceof ResponseStatusException) {
ResponseStatusException responseStatusException = (ResponseStatusException) ex;
} else if (ex instanceof ResponseStatusException responseStatusException) {
msg = responseStatusException.getMessage();
} else {
msg = "内部服务器错误";

View File

@ -14,10 +14,10 @@ public interface ValidateCodeService {
/**
*
*/
public Result createCaptcha () throws IOException, CaptchaException;
Result createCaptcha() throws IOException, CaptchaException;
/**
*
*/
public void checkCaptcha (String key, String value) throws CaptchaException;
void checkCaptcha(String key, String value) throws CaptchaException;
}

View File

@ -17,5 +17,5 @@ public interface ISysFileService {
*
* @throws Exception
*/
public String uploadFile (MultipartFile file) throws Exception;
String uploadFile(MultipartFile file) throws Exception;
}

View File

@ -24,7 +24,7 @@ public class OSSCloudClient {
}
private static class SingletonContainer{
private static OSSCloudClient instance = new OSSCloudClient();
private static final OSSCloudClient instance = new OSSCloudClient();
}
public static OSSCloudClient getInstance() {

View File

@ -21,7 +21,7 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
* @param ${pkColumn.javaField} ${functionName}主键
* @return ${functionName}
*/
public ${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
/**
* 查询${functionName}列表
@ -29,7 +29,7 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
* @param ${className} ${functionName}
* @return ${functionName}集合
*/
public List<${ClassName}> select${ClassName}List(${ClassName} ${className});
List<${ClassName}> select${ClassName}List(${ClassName} ${className});
/**
* 新增${functionName}
@ -37,7 +37,7 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
* @param ${className} ${functionName}
* @return 结果
*/
public int insert${ClassName}(${ClassName} ${className});
int insert${ClassName}(${ClassName} ${className});
/**
* 修改${functionName}
@ -45,7 +45,7 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
* @param ${className} ${functionName}
* @return 结果
*/
public int update${ClassName}(${ClassName} ${className});
int update${ClassName}(${ClassName} ${className});
/**
* 删除${functionName}
@ -53,7 +53,7 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
* @param ${pkColumn.javaField} ${functionName}主键
* @return 结果
*/
public int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
/**
* 批量删除${functionName}
@ -61,7 +61,7 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
* @param ${pkColumn.javaField}s 需要删除的数据主键集合
* @return 结果
*/
public int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);
int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);
#if($table.sub)
/**
@ -70,7 +70,7 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
* @param ${pkColumn.javaField}s 需要删除的数据主键集合
* @return 结果
*/
public int delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);
int delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);
/**
* 批量新增${subTable.functionName}
@ -78,7 +78,7 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
* @param ${subclassName}List ${subTable.functionName}列表
* @return 结果
*/
public int batch${subClassName}(List<${subClassName}> ${subclassName}List);
int batch${subClassName}(List<${subClassName}> ${subclassName}List);
/**
@ -87,6 +87,6 @@ public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
* @param ${pkColumn.javaField} ${functionName}ID
* @return 结果
*/
public int delete${subClassName}By${subTableFkClassName}(${pkColumn.javaType} ${pkColumn.javaField});
int delete${subClassName}By${subTableFkClassName}(${pkColumn.javaType} ${pkColumn.javaField});
#end
}

View File

@ -18,7 +18,7 @@ public interface ${ClassName}Service extends IService<${ClassName}>
* @param ${pkColumn.javaField} ${functionName}主键
* @return ${functionName}
*/
public ${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
/**
* 查询${functionName}列表
@ -26,7 +26,7 @@ public interface ${ClassName}Service extends IService<${ClassName}>
* @param ${className} ${functionName}
* @return ${functionName}集合
*/
public List<${ClassName}> select${ClassName}List(${ClassName} ${className});
List<${ClassName}> select${ClassName}List(${ClassName} ${className});
/**
* 新增${functionName}
@ -34,7 +34,7 @@ public interface ${ClassName}Service extends IService<${ClassName}>
* @param ${className} ${functionName}
* @return 结果
*/
public int insert${ClassName}(${ClassName} ${className});
int insert${ClassName}(${ClassName} ${className});
/**
* 修改${functionName}
@ -42,7 +42,7 @@ public interface ${ClassName}Service extends IService<${ClassName}>
* @param ${className} ${functionName}
* @return 结果
*/
public int update${ClassName}(${ClassName} ${className});
int update${ClassName}(${ClassName} ${className});
/**
* 批量删除${functionName}
@ -50,7 +50,7 @@ public interface ${ClassName}Service extends IService<${ClassName}>
* @param ${pkColumn.javaField}s 需要删除的${functionName}主键集合
* @return 结果
*/
public int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);
int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);
/**
* 删除${functionName}信息
@ -58,5 +58,5 @@ public interface ${ClassName}Service extends IService<${ClassName}>
* @param ${pkColumn.javaField} ${functionName}主键
* @return 结果
*/
public int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
}

View File

@ -494,7 +494,7 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
this.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + row.${pkColumn.javaField} + '"的数据项?').then(function() {
return del${BusinessName}(row.${pkColumn.javaField});
return del${BusinessName}(row.${pkColumn.javaField})
}).then(() => {
this.getList();
this.#[[$modal]]#.msgSuccess("删除成功");

View File

@ -170,7 +170,7 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
@ -580,7 +580,7 @@ export default {
this.#[[$modal]]#.msgError("请先选择要删除的${subTable.functionName}数据");
} else {
const ${subclassName}List = this.${subclassName}List;
const checked${subClassName} = this.checked${subClassName};
const checked${subClassName} = this.checked${subClassName}
this.${subclassName}List = ${subclassName}List.filter(function(item) {
return checked${subClassName}.indexOf(item.index) == -1
});
@ -598,5 +598,5 @@ export default {
}, `${businessName}_#[[${new Date().getTime()}]]#.xlsx`)
}
}
};
}
</script>

View File

@ -355,7 +355,7 @@ function getTreeselect() {
${businessName}Options.value.push(data);
});
}
// 取消按钮
function cancel() {
open.value = false;
@ -463,7 +463,7 @@ function submitForm() {
/** 删除按钮操作 */
function handleDelete(row) {
proxy.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + row.${pkColumn.javaField} + '"的数据项?').then(function() {
return del${BusinessName}(row.${pkColumn.javaField});
return del${BusinessName}(row.${pkColumn.javaField})
}).then(() => {
getList();
proxy.#[[$modal]]#.msgSuccess("删除成功");

View File

@ -153,7 +153,7 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
@ -535,7 +535,7 @@ function submitForm() {
function handleDelete(row) {
const _${pkColumn.javaField}s = row.${pkColumn.javaField} || ids.value;
proxy.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + _${pkColumn.javaField}s + '"的数据项?').then(function() {
return del${BusinessName}(_${pkColumn.javaField}s);
return del${BusinessName}(_${pkColumn.javaField}s)
}).then(() => {
getList();
proxy.#[[$modal]]#.msgSuccess("删除成功");

View File

@ -18,14 +18,14 @@ public interface SysJobLogMapper extends BaseMapper<SysJobLog> {
*
* @return
*/
public List<SysJobLog> selectJobLogList (SysJobLog jobLog);
List<SysJobLog> selectJobLogList(SysJobLog jobLog);
/**
*
*
* @return
*/
public List<SysJobLog> selectJobLogAll ();
List<SysJobLog> selectJobLogAll();
/**
* ID
@ -34,7 +34,7 @@ public interface SysJobLogMapper extends BaseMapper<SysJobLog> {
*
* @return
*/
public SysJobLog selectJobLogById (Long jobLogId);
SysJobLog selectJobLogById(Long jobLogId);
/**
*
@ -43,7 +43,7 @@ public interface SysJobLogMapper extends BaseMapper<SysJobLog> {
*
* @return
*/
public int insertJobLog (SysJobLog jobLog);
int insertJobLog(SysJobLog jobLog);
/**
*
@ -52,7 +52,7 @@ public interface SysJobLogMapper extends BaseMapper<SysJobLog> {
*
* @return
*/
public int deleteJobLogByIds (Long[] logIds);
int deleteJobLogByIds(Long[] logIds);
/**
*
@ -61,10 +61,10 @@ public interface SysJobLogMapper extends BaseMapper<SysJobLog> {
*
* @return
*/
public int deleteJobLogById (Long jobId);
int deleteJobLogById(Long jobId);
/**
*
*/
public void cleanJobLog ();
void cleanJobLog();
}

View File

@ -18,14 +18,14 @@ public interface SysJobMapper extends BaseMapper<SysJob> {
*
* @return
*/
public List<SysJob> selectJobList (SysJob job);
List<SysJob> selectJobList(SysJob job);
/**
*
*
* @return
*/
public List<SysJob> selectJobAll ();
List<SysJob> selectJobAll();
/**
* ID
@ -34,7 +34,7 @@ public interface SysJobMapper extends BaseMapper<SysJob> {
*
* @return
*/
public SysJob selectJobById (Long jobId);
SysJob selectJobById(Long jobId);
/**
* ID
@ -43,7 +43,7 @@ public interface SysJobMapper extends BaseMapper<SysJob> {
*
* @return
*/
public int deleteJobById (Long jobId);
int deleteJobById(Long jobId);
/**
*
@ -52,7 +52,7 @@ public interface SysJobMapper extends BaseMapper<SysJob> {
*
* @return
*/
public int deleteJobByIds (Long[] ids);
int deleteJobByIds(Long[] ids);
/**
*
@ -61,7 +61,7 @@ public interface SysJobMapper extends BaseMapper<SysJob> {
*
* @return
*/
public int updateJob (SysJob job);
int updateJob(SysJob job);
/**
*
@ -70,5 +70,5 @@ public interface SysJobMapper extends BaseMapper<SysJob> {
*
* @return
*/
public int insertJob (SysJob job);
int insertJob(SysJob job);
}

View File

@ -17,7 +17,7 @@ public interface ISysJobLogService {
*
* @return
*/
public List<SysJobLog> selectJobLogList (SysJobLog jobLog);
List<SysJobLog> selectJobLogList(SysJobLog jobLog);
/**
* ID
@ -26,14 +26,14 @@ public interface ISysJobLogService {
*
* @return
*/
public SysJobLog selectJobLogById (Long jobLogId);
SysJobLog selectJobLogById(Long jobLogId);
/**
*
*
* @param jobLog
*/
public void addJobLog (SysJobLog jobLog);
void addJobLog(SysJobLog jobLog);
/**
*
@ -42,7 +42,7 @@ public interface ISysJobLogService {
*
* @return
*/
public int deleteJobLogByIds (Long[] logIds);
int deleteJobLogByIds(Long[] logIds);
/**
*
@ -51,10 +51,10 @@ public interface ISysJobLogService {
*
* @return
*/
public int deleteJobLogById (Long jobId);
int deleteJobLogById(Long jobId);
/**
*
*/
public void cleanJobLog ();
void cleanJobLog();
}

View File

@ -19,7 +19,7 @@ public interface ISysJobService {
*
* @return
*/
public List<SysJob> selectJobList (SysJob job);
List<SysJob> selectJobList(SysJob job);
/**
* ID
@ -28,7 +28,7 @@ public interface ISysJobService {
*
* @return
*/
public SysJob selectJobById (Long jobId);
SysJob selectJobById(Long jobId);
/**
*
@ -37,7 +37,7 @@ public interface ISysJobService {
*
* @return
*/
public int pauseJob (SysJob job) throws SchedulerException;
int pauseJob(SysJob job) throws SchedulerException;
/**
*
@ -46,7 +46,7 @@ public interface ISysJobService {
*
* @return
*/
public int resumeJob (SysJob job) throws SchedulerException;
int resumeJob(SysJob job) throws SchedulerException;
/**
* trigger
@ -55,7 +55,7 @@ public interface ISysJobService {
*
* @return
*/
public int deleteJob (SysJob job) throws SchedulerException;
int deleteJob(SysJob job) throws SchedulerException;
/**
*
@ -64,7 +64,7 @@ public interface ISysJobService {
*
* @return
*/
public void deleteJobByIds (Long[] jobIds) throws SchedulerException;
void deleteJobByIds(Long[] jobIds) throws SchedulerException;
/**
*
@ -73,7 +73,7 @@ public interface ISysJobService {
*
* @return
*/
public int changeStatus (SysJob job) throws SchedulerException;
int changeStatus(SysJob job) throws SchedulerException;
/**
*
@ -82,7 +82,7 @@ public interface ISysJobService {
*
* @return
*/
public boolean run (SysJob job) throws SchedulerException;
boolean run(SysJob job) throws SchedulerException;
/**
*
@ -91,7 +91,7 @@ public interface ISysJobService {
*
* @return
*/
public int insertJob (SysJob job) throws SchedulerException, TaskException;
int insertJob(SysJob job) throws SchedulerException, TaskException;
/**
*
@ -100,7 +100,7 @@ public interface ISysJobService {
*
* @return
*/
public int updateJob (SysJob job) throws SchedulerException, TaskException;
int updateJob(SysJob job) throws SchedulerException, TaskException;
/**
* cron
@ -109,5 +109,5 @@ public interface ISysJobService {
*
* @return
*/
public boolean checkCronExpressionIsValid (String cronExpression);
boolean checkCronExpressionIsValid(String cronExpression);
}

View File

@ -27,7 +27,7 @@ public abstract class AbstractQuartzJob implements Job {
/**
* 线
*/
private static ThreadLocal<Date> threadLocal = new ThreadLocal<>();
private static final ThreadLocal<Date> threadLocal = new ThreadLocal<>();
@Override
public void execute (JobExecutionContext context) throws JobExecutionException {

View File

@ -157,7 +157,7 @@ public class JobInvokeUtil {
Object[] classs = new Object[methodParams.size()];
int index = 0;
for (Object[] os : methodParams) {
classs[index] = (Object) os[0];
classs[index] = os[0];
index++;
}
return classs;

View File

@ -64,70 +64,6 @@ public class Brand extends BaseEntity {
@Excel(name = "公司地址")
private String addressName;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setLogo(String logo) {
this.logo = logo;
}
public String getLogo() {
return logo;
}
public void setIntroduction(String introduction) {
this.introduction = introduction;
}
public String getIntroduction() {
return introduction;
}
public void setStatus(String status) {
this.status = status;
}
public String getStatus() {
return status;
}
public void setAddressName(String addressName) {
this.addressName = addressName;
}
public String getAddressName() {
return addressName;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("logo", getLogo())
.append("introduction", getIntroduction())
.append("status", getStatus())
.append("addressName", getAddressName())
.append("remark", getRemark())
.append("createBy", SecurityUtils.getUsername())
.append("createTime", getCreateTime())
.append("updateBy", SecurityUtils.getUsername())
.append("updateTime", getUpdateTime())
.toString();
}
//添加数据构造体
public static Brand saveBuilder(BrandReq brandReq) {

View File

@ -37,45 +37,5 @@ public class BrandCategory extends BaseEntity
@Excel(name = "品牌编号")
private Long brandId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCategoryId(Long categoryId)
{
this.categoryId = categoryId;
}
public Long getCategoryId()
{
return categoryId;
}
public void setBrandId(Long brandId)
{
this.brandId = brandId;
}
public Long getBrandId()
{
return brandId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("categoryId", getCategoryId())
.append("brandId", getBrandId())
.append("remark", getRemark())
.append("createBy", SecurityUtils.getUsername())
.append("createTime", getCreateTime())
.append("updateBy", SecurityUtils.getUsername())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -37,45 +37,10 @@ public class CategoryAttribute extends BaseEntity
@Excel(name = "品类编号")
private Long categoryId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAttributeId(Long attributeId)
{
this.attributeId = attributeId;
}
public Long getAttributeId()
{
return attributeId;
}
public void setCategoryId(Long categoryId)
{
this.categoryId = categoryId;
}
public Long getCategoryId()
{
return categoryId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("attributeId", getAttributeId())
.append("categoryId", getCategoryId())
.append("remark", getRemark())
.append("createBy", SecurityUtils.getUsername())
.append("createTime", getCreateTime())
.append("updateBy", SecurityUtils.getUsername())
.append("updateTime", getUpdateTime())
.toString();
public static CategoryAttribute categoryBuilder(Long id, Long attributeId) {
return CategoryAttribute.builder()
.categoryId(id)
.attributeId(attributeId)
.build();
}
}

View File

@ -37,45 +37,18 @@ public class CategoryAttributeGroup extends BaseEntity
@Excel(name = "品类编号")
private Long categoryId;
public void setId(Long id)
{
this.id = id;
}
/**
*
*
* @param id
* @param groupId
* @return
*/
public static CategoryAttributeGroup saveBuilder(Long id, Long groupId) {
return CategoryAttributeGroup.builder()
.attributeGroupId(groupId)
.categoryId(id)
.build();
public Long getId()
{
return id;
}
public void setAttributeGroupId(Long attributeGroupId)
{
this.attributeGroupId = attributeGroupId;
}
public Long getAttributeGroupId()
{
return attributeGroupId;
}
public void setCategoryId(Long categoryId)
{
this.categoryId = categoryId;
}
public Long getCategoryId()
{
return categoryId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("attributeGroupId", getAttributeGroupId())
.append("categoryId", getCategoryId())
.append("remark", getRemark())
.append("createBy", SecurityUtils.getUsername())
.append("createTime", getCreateTime())
.append("updateBy", SecurityUtils.getUsername())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -1,15 +1,14 @@
package com.muyu.product.domain;
import com.muyu.common.security.utils.SecurityUtils;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.TreeEntity;
import com.muyu.product.domain.model.CategoryInfoSaveModel;
import com.muyu.product.domain.req.CategoryReq;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* category_info
@ -41,56 +40,30 @@ public class CategoryInfo extends TreeEntity
@Excel(name = "是否启用")
private String status;
public void setId(Long id)
{
this.id = id;
/**
*
* @param req
* @return
*/
public static CategoryInfo queryBuilder(CategoryReq req){
return CategoryInfo.builder()
.name(req.getName())
.image(req.getImage())
.status(req.getStatus())
.remark(req.getRemark())
.build();
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("image", getImage())
.append("parentId", getParentId())
.append("status", getStatus())
.append("remark", getRemark())
.append("createBy", SecurityUtils.getUsername())
.append("createTime", getCreateTime())
.append("updateBy", SecurityUtils.getUsername())
.append("updateTime", getUpdateTime())
.toString();
/** 响应值对象 */
public static CategoryInfo saveCategoryBuilder(CategoryInfoSaveModel req){
return CategoryInfo.builder()
.name(req.getName())
.status(req.getStatus())
.image(req.getImage())
.remark(req.getRemark())
.createBy(req.getCreateBy())
.createTime(req.getCreateTime())
.build();
}
}

View File

@ -0,0 +1,68 @@
package com.muyu.product.domain.model;
import com.muyu.common.core.web.domain.TreeEntity;
import com.muyu.product.domain.req.CategoryReq;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
import java.util.List;
import java.util.function.Supplier;
/**
* @ClassName CategoryInfoSaveModel
* @Description
* @Author SaiSai.Liu
* @Date 2024/3/5/0005 17:17
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class CategoryInfoSaveModel extends TreeEntity {
/** 主键 */
private Long id;
/** 品类名称 */
private String name;
/** 图片 */
private String image;
/** 父级品类 */
private Long parentId;
/** 是否启用 */
private String status;
/** 说明 */
private String remark;
private String createBy;
private Date createTime;
private List<Long> checkedAttributeIds;
private List<Long> attributeGroupIds;
private List<Long> brandIds;
/**
*
*/
public static CategoryInfoSaveModel saveBuilder(CategoryReq req, Supplier<String> username){
return CategoryInfoSaveModel.builder()
.checkedAttributeIds(req.getCheckedAttributeIds())
.attributeGroupIds(req.getAttributeGroupIds())
.brandIds(req.getBrandIds())
.image(req.getImage())
.name(req.getName())
.parentId(req.getParentId())
.createBy(username.get())
.createTime(req.getCreateTime())
.status(req.getStatus())
.remark(req.getRemark())
.build();
}
}

View File

@ -0,0 +1,51 @@
package com.muyu.product.domain.req;
import com.muyu.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
import java.util.List;
/**
* @ClassName CategoryReq
* @Description
* @Author SaiSai.Liu
* @Date 2024/3/5/0005 12:35
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class CategoryReq {
/** 主键 */
private Long id;
/** 品类名称 */
private String name;
/** 图片 */
private String image;
/** 父级品类 */
private Long parentId;
/** 是否启用 */
private String status;
/** 说明 */
private String remark;
private String createBy;
private Date createTime;
private List<Long> checkedAttributeIds;
private List<Long> attributeGroupIds;
private List<Long> brandIds;
}

View File

@ -0,0 +1,76 @@
package com.muyu.product.domain.resp;
import com.muyu.common.core.web.domain.TreeEntity;
import com.muyu.common.security.utils.SecurityUtils;
import com.muyu.product.domain.req.CategoryReq;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
/**
* @ClassName CategoryResp
* @Description
* @Author SaiSai.Liu
* @Date 2024/3/5/0005 12:35
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class CategoryResp extends TreeEntity {
/** 主键 */
private Long id;
/** 品类名称 */
private String name;
/** 图片 */
private String image;
/** 是否启用 */
private String status;
private String createBy;
private String updateBy;
private Date createTime;
private Date updateTime;
/**
*
* @param categoryReq
* @return
*/
public static CategoryResp saveBuilder(CategoryReq categoryReq){
return CategoryResp.builder()
.name(categoryReq.getName())
.image(categoryReq.getImage())
.status(categoryReq.getStatus())
.createBy(SecurityUtils.getUsername())
.createTime(new Date())
.build();
}
/**
*
* @param categoryReq
* @return
*/
public static CategoryResp updateBuilder(CategoryReq categoryReq){
return CategoryResp.builder()
.name(categoryReq.getName())
.image(categoryReq.getImage())
.status(categoryReq.getStatus())
.updateBy(SecurityUtils.getUsername())
.updateTime(new Date())
.build();
}
}

View File

@ -0,0 +1,42 @@
{
"categoryInfoId": 1,
"states": "y",
"categoryName": "节点",
"remark": null,
"images": null,
"req": {
"asAttributeCategoryList": [
],
"asAttributeGroupList": [
属性组
],
"asBrandCategoryList":[
品类品牌
]
}
}
{
"categoryInfoId": 1,
"categoryName": "节点",
"remark": null,
"req": {
"asAttributeCategoryList": [
"attributeInfo": {
"id": 1
"attributeName": null
}
],
"attributeGroupList": [
"attributeInfoGroup": {
"id": 1,
"attributeInfoList": []
}
]
}
}

View File

@ -3,6 +3,11 @@ package com.muyu.product.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.muyu.common.security.utils.SecurityUtils;
import com.muyu.product.domain.model.CategoryInfoSaveModel;
import com.muyu.product.domain.req.CategoryReq;
import com.muyu.product.domain.resp.CategoryResp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@ -74,9 +79,9 @@ public class CategoryInfoController extends BaseController
@RequiresPermissions("product:category_info:add")
@Log(title = "品类信息", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody CategoryInfo categoryInfo)
public Result add(@RequestBody CategoryReq categoryReq)
{
return toAjax(categoryInfoService.insertCategoryInfo(categoryInfo));
return toAjax(categoryInfoService.save(CategoryInfoSaveModel.saveBuilder(categoryReq, SecurityUtils::getUsername )));
}
/**

View File

@ -19,7 +19,7 @@ public interface AddressMapper extends BaseMapper<Address>
* @param id
* @return
*/
public Address selectAddressById(Long id);
Address selectAddressById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface AddressMapper extends BaseMapper<Address>
* @param address
* @return
*/
public List<Address> selectAddressList(Address address);
List<Address> selectAddressList(Address address);
/**
*
@ -35,7 +35,7 @@ public interface AddressMapper extends BaseMapper<Address>
* @param address
* @return
*/
public int insertAddress(Address address);
int insertAddress(Address address);
/**
*
@ -43,7 +43,7 @@ public interface AddressMapper extends BaseMapper<Address>
* @param address
* @return
*/
public int updateAddress(Address address);
int updateAddress(Address address);
/**
*
@ -51,7 +51,7 @@ public interface AddressMapper extends BaseMapper<Address>
* @param id
* @return
*/
public int deleteAddressById(Long id);
int deleteAddressById(Long id);
/**
*
@ -59,5 +59,5 @@ public interface AddressMapper extends BaseMapper<Address>
* @param ids
* @return
*/
public int deleteAddressByIds(Long[] ids);
int deleteAddressByIds(Long[] ids);
}

View File

@ -19,7 +19,7 @@ public interface AsAttributeGroupMapper extends BaseMapper<AsAttributeGroup>
* @param id
* @return
*/
public AsAttributeGroup selectAsAttributeGroupById(Long id);
AsAttributeGroup selectAsAttributeGroupById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface AsAttributeGroupMapper extends BaseMapper<AsAttributeGroup>
* @param asAttributeGroup
* @return
*/
public List<AsAttributeGroup> selectAsAttributeGroupList(AsAttributeGroup asAttributeGroup);
List<AsAttributeGroup> selectAsAttributeGroupList(AsAttributeGroup asAttributeGroup);
/**
*
@ -35,7 +35,7 @@ public interface AsAttributeGroupMapper extends BaseMapper<AsAttributeGroup>
* @param asAttributeGroup
* @return
*/
public int insertAsAttributeGroup(AsAttributeGroup asAttributeGroup);
int insertAsAttributeGroup(AsAttributeGroup asAttributeGroup);
/**
*
@ -43,7 +43,7 @@ public interface AsAttributeGroupMapper extends BaseMapper<AsAttributeGroup>
* @param asAttributeGroup
* @return
*/
public int updateAsAttributeGroup(AsAttributeGroup asAttributeGroup);
int updateAsAttributeGroup(AsAttributeGroup asAttributeGroup);
/**
*
@ -51,7 +51,7 @@ public interface AsAttributeGroupMapper extends BaseMapper<AsAttributeGroup>
* @param id
* @return
*/
public int deleteAsAttributeGroupById(Long id);
int deleteAsAttributeGroupById(Long id);
/**
*
@ -59,7 +59,7 @@ public interface AsAttributeGroupMapper extends BaseMapper<AsAttributeGroup>
* @param ids
* @return
*/
public int deleteAsAttributeGroupByIds(Long[] ids);
int deleteAsAttributeGroupByIds(Long[] ids);
public int deleteAsAttributeGroupByGroupId(Long id);
int deleteAsAttributeGroupByGroupId(Long id);
}

View File

@ -19,7 +19,7 @@ public interface AttributeGroupMapper extends BaseMapper<AttributeGroup>
* @param id
* @return
*/
public AttributeGroup selectAttributeGroupById(Long id);
AttributeGroup selectAttributeGroupById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface AttributeGroupMapper extends BaseMapper<AttributeGroup>
* @param attributeGroup
* @return
*/
public List<AttributeGroup> selectAttributeGroupList(AttributeGroup attributeGroup);
List<AttributeGroup> selectAttributeGroupList(AttributeGroup attributeGroup);
/**
*
@ -35,7 +35,7 @@ public interface AttributeGroupMapper extends BaseMapper<AttributeGroup>
* @param attributeGroup
* @return
*/
public int insertAttributeGroup(AttributeGroup attributeGroup);
int insertAttributeGroup(AttributeGroup attributeGroup);
/**
*
@ -43,7 +43,7 @@ public interface AttributeGroupMapper extends BaseMapper<AttributeGroup>
* @param attributeGroup
* @return
*/
public int updateAttributeGroup(AttributeGroup attributeGroup);
int updateAttributeGroup(AttributeGroup attributeGroup);
/**
*
@ -51,7 +51,7 @@ public interface AttributeGroupMapper extends BaseMapper<AttributeGroup>
* @param id
* @return
*/
public int deleteAttributeGroupById(Long id);
int deleteAttributeGroupById(Long id);
/**
*
@ -59,5 +59,5 @@ public interface AttributeGroupMapper extends BaseMapper<AttributeGroup>
* @param ids
* @return
*/
public int deleteAttributeGroupByIds(Long[] ids);
int deleteAttributeGroupByIds(Long[] ids);
}

View File

@ -19,7 +19,7 @@ public interface AttributeMapper extends BaseMapper<Attribute>
* @param id
* @return
*/
public Attribute selectAttributeById(Long id);
Attribute selectAttributeById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface AttributeMapper extends BaseMapper<Attribute>
* @param attribute
* @return
*/
public List<Attribute> selectAttributeList(Attribute attribute);
List<Attribute> selectAttributeList(Attribute attribute);
/**
*
@ -35,7 +35,7 @@ public interface AttributeMapper extends BaseMapper<Attribute>
* @param attribute
* @return
*/
public int insertAttribute(Attribute attribute);
int insertAttribute(Attribute attribute);
/**
*
@ -43,7 +43,7 @@ public interface AttributeMapper extends BaseMapper<Attribute>
* @param attribute
* @return
*/
public int updateAttribute(Attribute attribute);
int updateAttribute(Attribute attribute);
/**
*
@ -51,7 +51,7 @@ public interface AttributeMapper extends BaseMapper<Attribute>
* @param id
* @return
*/
public int deleteAttributeById(Long id);
int deleteAttributeById(Long id);
/**
*
@ -59,5 +59,5 @@ public interface AttributeMapper extends BaseMapper<Attribute>
* @param ids
* @return
*/
public int deleteAttributeByIds(Long[] ids);
int deleteAttributeByIds(Long[] ids);
}

View File

@ -19,7 +19,7 @@ public interface AttributeProductMapper extends BaseMapper<AttributeProduct>
* @param id
* @return
*/
public AttributeProduct selectAttributeProductById(Long id);
AttributeProduct selectAttributeProductById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface AttributeProductMapper extends BaseMapper<AttributeProduct>
* @param attributeProduct
* @return
*/
public List<AttributeProduct> selectAttributeProductList(AttributeProduct attributeProduct);
List<AttributeProduct> selectAttributeProductList(AttributeProduct attributeProduct);
/**
*
@ -35,7 +35,7 @@ public interface AttributeProductMapper extends BaseMapper<AttributeProduct>
* @param attributeProduct
* @return
*/
public int insertAttributeProduct(AttributeProduct attributeProduct);
int insertAttributeProduct(AttributeProduct attributeProduct);
/**
*
@ -43,7 +43,7 @@ public interface AttributeProductMapper extends BaseMapper<AttributeProduct>
* @param attributeProduct
* @return
*/
public int updateAttributeProduct(AttributeProduct attributeProduct);
int updateAttributeProduct(AttributeProduct attributeProduct);
/**
*
@ -51,7 +51,7 @@ public interface AttributeProductMapper extends BaseMapper<AttributeProduct>
* @param id
* @return
*/
public int deleteAttributeProductById(Long id);
int deleteAttributeProductById(Long id);
/**
*
@ -59,5 +59,5 @@ public interface AttributeProductMapper extends BaseMapper<AttributeProduct>
* @param ids
* @return
*/
public int deleteAttributeProductByIds(Long[] ids);
int deleteAttributeProductByIds(Long[] ids);
}

View File

@ -19,7 +19,7 @@ public interface BrandCategoryMapper extends BaseMapper<BrandCategory>
* @param id
* @return
*/
public BrandCategory selectBrandCategoryById(Long id);
BrandCategory selectBrandCategoryById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface BrandCategoryMapper extends BaseMapper<BrandCategory>
* @param brandCategory
* @return
*/
public List<BrandCategory> selectBrandCategoryList(BrandCategory brandCategory);
List<BrandCategory> selectBrandCategoryList(BrandCategory brandCategory);
/**
*
@ -35,7 +35,7 @@ public interface BrandCategoryMapper extends BaseMapper<BrandCategory>
* @param brandCategory
* @return
*/
public int insertBrandCategory(BrandCategory brandCategory);
int insertBrandCategory(BrandCategory brandCategory);
/**
*
@ -43,7 +43,7 @@ public interface BrandCategoryMapper extends BaseMapper<BrandCategory>
* @param brandCategory
* @return
*/
public int updateBrandCategory(BrandCategory brandCategory);
int updateBrandCategory(BrandCategory brandCategory);
/**
*
@ -51,7 +51,7 @@ public interface BrandCategoryMapper extends BaseMapper<BrandCategory>
* @param id
* @return
*/
public int deleteBrandCategoryById(Long id);
int deleteBrandCategoryById(Long id);
/**
*
@ -59,5 +59,5 @@ public interface BrandCategoryMapper extends BaseMapper<BrandCategory>
* @param ids
* @return
*/
public int deleteBrandCategoryByIds(Long[] ids);
int deleteBrandCategoryByIds(Long[] ids);
}

View File

@ -20,7 +20,7 @@ public interface BrandMapper extends BaseMapper<Brand>
* @param id
* @return
*/
public Brand selectBrandById(Long id);
Brand selectBrandById(Long id);
/**
*
@ -28,7 +28,7 @@ public interface BrandMapper extends BaseMapper<Brand>
* @param brand
* @return
*/
public List<Brand> selectBrandList(Brand brand);
List<Brand> selectBrandList(Brand brand);
/**
*
@ -36,7 +36,7 @@ public interface BrandMapper extends BaseMapper<Brand>
* @param brand
* @return
*/
public int insertBrand(Brand brand);
int insertBrand(Brand brand);
/**
*
@ -44,7 +44,7 @@ public interface BrandMapper extends BaseMapper<Brand>
* @param brand
* @return
*/
public int updateBrand(Brand brand);
int updateBrand(Brand brand);
/**
*
@ -52,7 +52,7 @@ public interface BrandMapper extends BaseMapper<Brand>
* @param id
* @return
*/
public int deleteBrandById(Long id);
int deleteBrandById(Long id);
/**
*
@ -60,5 +60,5 @@ public interface BrandMapper extends BaseMapper<Brand>
* @param ids
* @return
*/
public int deleteBrandByIds(Long[] ids);
int deleteBrandByIds(Long[] ids);
}

View File

@ -19,7 +19,7 @@ public interface CategoryAttributeGroupMapper extends BaseMapper<CategoryAttribu
* @param id
* @return
*/
public CategoryAttributeGroup selectCategoryAttributeGroupById(Long id);
CategoryAttributeGroup selectCategoryAttributeGroupById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface CategoryAttributeGroupMapper extends BaseMapper<CategoryAttribu
* @param categoryAttributeGroup
* @return
*/
public List<CategoryAttributeGroup> selectCategoryAttributeGroupList(CategoryAttributeGroup categoryAttributeGroup);
List<CategoryAttributeGroup> selectCategoryAttributeGroupList(CategoryAttributeGroup categoryAttributeGroup);
/**
*
@ -35,7 +35,7 @@ public interface CategoryAttributeGroupMapper extends BaseMapper<CategoryAttribu
* @param categoryAttributeGroup
* @return
*/
public int insertCategoryAttributeGroup(CategoryAttributeGroup categoryAttributeGroup);
int insertCategoryAttributeGroup(CategoryAttributeGroup categoryAttributeGroup);
/**
*
@ -43,7 +43,7 @@ public interface CategoryAttributeGroupMapper extends BaseMapper<CategoryAttribu
* @param categoryAttributeGroup
* @return
*/
public int updateCategoryAttributeGroup(CategoryAttributeGroup categoryAttributeGroup);
int updateCategoryAttributeGroup(CategoryAttributeGroup categoryAttributeGroup);
/**
*
@ -51,7 +51,7 @@ public interface CategoryAttributeGroupMapper extends BaseMapper<CategoryAttribu
* @param id
* @return
*/
public int deleteCategoryAttributeGroupById(Long id);
int deleteCategoryAttributeGroupById(Long id);
/**
*
@ -59,5 +59,5 @@ public interface CategoryAttributeGroupMapper extends BaseMapper<CategoryAttribu
* @param ids
* @return
*/
public int deleteCategoryAttributeGroupByIds(Long[] ids);
int deleteCategoryAttributeGroupByIds(Long[] ids);
}

View File

@ -19,7 +19,7 @@ public interface CategoryAttributeMapper extends BaseMapper<CategoryAttribute>
* @param id
* @return
*/
public CategoryAttribute selectCategoryAttributeById(Long id);
CategoryAttribute selectCategoryAttributeById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface CategoryAttributeMapper extends BaseMapper<CategoryAttribute>
* @param categoryAttribute
* @return
*/
public List<CategoryAttribute> selectCategoryAttributeList(CategoryAttribute categoryAttribute);
List<CategoryAttribute> selectCategoryAttributeList(CategoryAttribute categoryAttribute);
/**
*
@ -35,7 +35,7 @@ public interface CategoryAttributeMapper extends BaseMapper<CategoryAttribute>
* @param categoryAttribute
* @return
*/
public int insertCategoryAttribute(CategoryAttribute categoryAttribute);
int insertCategoryAttribute(CategoryAttribute categoryAttribute);
/**
*
@ -43,7 +43,7 @@ public interface CategoryAttributeMapper extends BaseMapper<CategoryAttribute>
* @param categoryAttribute
* @return
*/
public int updateCategoryAttribute(CategoryAttribute categoryAttribute);
int updateCategoryAttribute(CategoryAttribute categoryAttribute);
/**
*
@ -51,7 +51,7 @@ public interface CategoryAttributeMapper extends BaseMapper<CategoryAttribute>
* @param id
* @return
*/
public int deleteCategoryAttributeById(Long id);
int deleteCategoryAttributeById(Long id);
/**
*
@ -59,5 +59,5 @@ public interface CategoryAttributeMapper extends BaseMapper<CategoryAttribute>
* @param ids
* @return
*/
public int deleteCategoryAttributeByIds(Long[] ids);
int deleteCategoryAttributeByIds(Long[] ids);
}

View File

@ -19,7 +19,7 @@ public interface CategoryInfoMapper extends BaseMapper<CategoryInfo>
* @param id
* @return
*/
public CategoryInfo selectCategoryInfoById(Long id);
CategoryInfo selectCategoryInfoById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface CategoryInfoMapper extends BaseMapper<CategoryInfo>
* @param categoryInfo
* @return
*/
public List<CategoryInfo> selectCategoryInfoList(CategoryInfo categoryInfo);
List<CategoryInfo> selectCategoryInfoList(CategoryInfo categoryInfo);
/**
*
@ -35,7 +35,7 @@ public interface CategoryInfoMapper extends BaseMapper<CategoryInfo>
* @param categoryInfo
* @return
*/
public int insertCategoryInfo(CategoryInfo categoryInfo);
int insertCategoryInfo(CategoryInfo categoryInfo);
/**
*
@ -43,7 +43,7 @@ public interface CategoryInfoMapper extends BaseMapper<CategoryInfo>
* @param categoryInfo
* @return
*/
public int updateCategoryInfo(CategoryInfo categoryInfo);
int updateCategoryInfo(CategoryInfo categoryInfo);
/**
*
@ -51,7 +51,7 @@ public interface CategoryInfoMapper extends BaseMapper<CategoryInfo>
* @param id
* @return
*/
public int deleteCategoryInfoById(Long id);
int deleteCategoryInfoById(Long id);
/**
*
@ -59,5 +59,5 @@ public interface CategoryInfoMapper extends BaseMapper<CategoryInfo>
* @param ids
* @return
*/
public int deleteCategoryInfoByIds(Long[] ids);
int deleteCategoryInfoByIds(Long[] ids);
}

View File

@ -19,7 +19,7 @@ public interface ProductCategoryMapper extends BaseMapper<ProductCategory>
* @param id
* @return
*/
public ProductCategory selectProductCategoryById(Long id);
ProductCategory selectProductCategoryById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface ProductCategoryMapper extends BaseMapper<ProductCategory>
* @param productCategory
* @return
*/
public List<ProductCategory> selectProductCategoryList(ProductCategory productCategory);
List<ProductCategory> selectProductCategoryList(ProductCategory productCategory);
/**
*
@ -35,7 +35,7 @@ public interface ProductCategoryMapper extends BaseMapper<ProductCategory>
* @param productCategory
* @return
*/
public int insertProductCategory(ProductCategory productCategory);
int insertProductCategory(ProductCategory productCategory);
/**
*
@ -43,7 +43,7 @@ public interface ProductCategoryMapper extends BaseMapper<ProductCategory>
* @param productCategory
* @return
*/
public int updateProductCategory(ProductCategory productCategory);
int updateProductCategory(ProductCategory productCategory);
/**
*
@ -51,7 +51,7 @@ public interface ProductCategoryMapper extends BaseMapper<ProductCategory>
* @param id
* @return
*/
public int deleteProductCategoryById(Long id);
int deleteProductCategoryById(Long id);
/**
*
@ -59,5 +59,5 @@ public interface ProductCategoryMapper extends BaseMapper<ProductCategory>
* @param ids
* @return
*/
public int deleteProductCategoryByIds(Long[] ids);
int deleteProductCategoryByIds(Long[] ids);
}

View File

@ -19,7 +19,7 @@ public interface ProductInfoMapper extends BaseMapper<ProductInfo>
* @param id ;
* @return ;
*/
public ProductInfo selectProductInfoById(Long id);
ProductInfo selectProductInfoById(Long id);
/**
* ;
@ -27,7 +27,7 @@ public interface ProductInfoMapper extends BaseMapper<ProductInfo>
* @param productInfo ;
* @return ;
*/
public List<ProductInfo> selectProductInfoList(ProductInfo productInfo);
List<ProductInfo> selectProductInfoList(ProductInfo productInfo);
/**
* ;
@ -35,7 +35,7 @@ public interface ProductInfoMapper extends BaseMapper<ProductInfo>
* @param productInfo ;
* @return
*/
public int insertProductInfo(ProductInfo productInfo);
int insertProductInfo(ProductInfo productInfo);
/**
* ;
@ -43,7 +43,7 @@ public interface ProductInfoMapper extends BaseMapper<ProductInfo>
* @param productInfo ;
* @return
*/
public int updateProductInfo(ProductInfo productInfo);
int updateProductInfo(ProductInfo productInfo);
/**
* ;
@ -51,7 +51,7 @@ public interface ProductInfoMapper extends BaseMapper<ProductInfo>
* @param id ;
* @return
*/
public int deleteProductInfoById(Long id);
int deleteProductInfoById(Long id);
/**
* ;
@ -59,5 +59,5 @@ public interface ProductInfoMapper extends BaseMapper<ProductInfo>
* @param ids
* @return
*/
public int deleteProductInfoByIds(Long[] ids);
int deleteProductInfoByIds(Long[] ids);
}

View File

@ -19,7 +19,7 @@ public interface RuleMapper extends BaseMapper<Rule>
* @param id
* @return
*/
public Rule selectRuleById(Long id);
Rule selectRuleById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface RuleMapper extends BaseMapper<Rule>
* @param rule
* @return
*/
public List<Rule> selectRuleList(Rule rule);
List<Rule> selectRuleList(Rule rule);
/**
*
@ -35,7 +35,7 @@ public interface RuleMapper extends BaseMapper<Rule>
* @param rule
* @return
*/
public int insertRule(Rule rule);
int insertRule(Rule rule);
/**
*
@ -43,7 +43,7 @@ public interface RuleMapper extends BaseMapper<Rule>
* @param rule
* @return
*/
public int updateRule(Rule rule);
int updateRule(Rule rule);
/**
*
@ -51,7 +51,7 @@ public interface RuleMapper extends BaseMapper<Rule>
* @param id
* @return
*/
public int deleteRuleById(Long id);
int deleteRuleById(Long id);
/**
*
@ -59,5 +59,5 @@ public interface RuleMapper extends BaseMapper<Rule>
* @param ids
* @return
*/
public int deleteRuleByIds(Long[] ids);
int deleteRuleByIds(Long[] ids);
}

View File

@ -19,7 +19,7 @@ public interface RuleProductMapper extends BaseMapper<RuleProduct>
* @param id
* @return
*/
public RuleProduct selectRuleProductById(Long id);
RuleProduct selectRuleProductById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface RuleProductMapper extends BaseMapper<RuleProduct>
* @param ruleProduct
* @return
*/
public List<RuleProduct> selectRuleProductList(RuleProduct ruleProduct);
List<RuleProduct> selectRuleProductList(RuleProduct ruleProduct);
/**
*
@ -35,7 +35,7 @@ public interface RuleProductMapper extends BaseMapper<RuleProduct>
* @param ruleProduct
* @return
*/
public int insertRuleProduct(RuleProduct ruleProduct);
int insertRuleProduct(RuleProduct ruleProduct);
/**
*
@ -43,7 +43,7 @@ public interface RuleProductMapper extends BaseMapper<RuleProduct>
* @param ruleProduct
* @return
*/
public int updateRuleProduct(RuleProduct ruleProduct);
int updateRuleProduct(RuleProduct ruleProduct);
/**
*
@ -51,7 +51,7 @@ public interface RuleProductMapper extends BaseMapper<RuleProduct>
* @param id
* @return
*/
public int deleteRuleProductById(Long id);
int deleteRuleProductById(Long id);
/**
*
@ -59,5 +59,5 @@ public interface RuleProductMapper extends BaseMapper<RuleProduct>
* @param ids
* @return
*/
public int deleteRuleProductByIds(Long[] ids);
int deleteRuleProductByIds(Long[] ids);
}

View File

@ -20,7 +20,7 @@ public interface IAddressService extends IService<Address>
* @param id
* @return
*/
public Address selectAddressById(Long id);
Address selectAddressById(Long id);
/**
*
@ -28,7 +28,7 @@ public interface IAddressService extends IService<Address>
* @param address
* @return
*/
public List<Address> selectAddressList(Address address);
List<Address> selectAddressList(Address address);
/**
*
@ -36,7 +36,7 @@ public interface IAddressService extends IService<Address>
* @param address
* @return
*/
public int insertAddress(Address address);
int insertAddress(Address address);
/**
*
@ -44,7 +44,7 @@ public interface IAddressService extends IService<Address>
* @param address
* @return
*/
public int updateAddress(Address address);
int updateAddress(Address address);
/**
*
@ -52,7 +52,7 @@ public interface IAddressService extends IService<Address>
* @param ids
* @return
*/
public int deleteAddressByIds(Long[] ids);
int deleteAddressByIds(Long[] ids);
/**
*
@ -60,5 +60,5 @@ public interface IAddressService extends IService<Address>
* @param id
* @return
*/
public int deleteAddressById(Long id);
int deleteAddressById(Long id);
}

View File

@ -19,7 +19,7 @@ public interface IAsAttributeGroupService extends IService<AsAttributeGroup>
* @param id
* @return
*/
public AsAttributeGroup selectAsAttributeGroupById(Long id);
AsAttributeGroup selectAsAttributeGroupById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface IAsAttributeGroupService extends IService<AsAttributeGroup>
* @param asAttributeGroup
* @return
*/
public List<AsAttributeGroup> selectAsAttributeGroupList(AsAttributeGroup asAttributeGroup);
List<AsAttributeGroup> selectAsAttributeGroupList(AsAttributeGroup asAttributeGroup);
/**
*
@ -35,7 +35,7 @@ public interface IAsAttributeGroupService extends IService<AsAttributeGroup>
* @param asAttributeGroup
* @return
*/
public int insertAsAttributeGroup(AsAttributeGroup asAttributeGroup);
int insertAsAttributeGroup(AsAttributeGroup asAttributeGroup);
/**
*
@ -43,7 +43,7 @@ public interface IAsAttributeGroupService extends IService<AsAttributeGroup>
* @param asAttributeGroup
* @return
*/
public int updateAsAttributeGroup(AsAttributeGroup asAttributeGroup);
int updateAsAttributeGroup(AsAttributeGroup asAttributeGroup);
/**
*
@ -51,7 +51,7 @@ public interface IAsAttributeGroupService extends IService<AsAttributeGroup>
* @param ids
* @return
*/
public int deleteAsAttributeGroupByIds(Long[] ids);
int deleteAsAttributeGroupByIds(Long[] ids);
/**
*
@ -59,7 +59,7 @@ public interface IAsAttributeGroupService extends IService<AsAttributeGroup>
* @param id
* @return
*/
public int deleteAsAttributeGroupById(Long id);
int deleteAsAttributeGroupById(Long id);
public int deleteAsAttributeGroupByGroupId(Long id);
int deleteAsAttributeGroupByGroupId(Long id);
}

View File

@ -21,7 +21,7 @@ public interface IAttributeGroupService extends IService<AttributeGroup>
* @param id
* @return
*/
public AttributeGroup selectAttributeGroupById(Long id);
AttributeGroup selectAttributeGroupById(Long id);
/**
*
@ -29,7 +29,7 @@ public interface IAttributeGroupService extends IService<AttributeGroup>
* @param attributeGroup
* @return
*/
public List<AttributeGroup> selectAttributeGroupList(AttributeGroup attributeGroup);
List<AttributeGroup> selectAttributeGroupList(AttributeGroup attributeGroup);
/**
*
@ -37,7 +37,7 @@ public interface IAttributeGroupService extends IService<AttributeGroup>
* @param attributeGroupReq
* @return
*/
public int insertAttributeGroup(AttributeGroupReq attributeGroupReq);
int insertAttributeGroup(AttributeGroupReq attributeGroupReq);
/**
*
@ -45,7 +45,7 @@ public interface IAttributeGroupService extends IService<AttributeGroup>
* @param attributeGroupReq
* @return
*/
public int updateAttributeGroup(AttributeGroupReq attributeGroupReq);
int updateAttributeGroup(AttributeGroupReq attributeGroupReq);
/**
*
@ -53,7 +53,7 @@ public interface IAttributeGroupService extends IService<AttributeGroup>
* @param ids
* @return
*/
public int deleteAttributeGroupByIds(Long[] ids);
int deleteAttributeGroupByIds(Long[] ids);
/**
*
@ -61,5 +61,5 @@ public interface IAttributeGroupService extends IService<AttributeGroup>
* @param id
* @return
*/
public int deleteAttributeGroupById(Long id);
int deleteAttributeGroupById(Long id);
}

View File

@ -20,7 +20,7 @@ public interface IAttributeProductService extends IService<AttributeProduct>
* @param id
* @return
*/
public AttributeProduct selectAttributeProductById(Long id);
AttributeProduct selectAttributeProductById(Long id);
/**
*
@ -28,7 +28,7 @@ public interface IAttributeProductService extends IService<AttributeProduct>
* @param attributeProduct
* @return
*/
public List<AttributeProduct> selectAttributeProductList(AttributeProduct attributeProduct);
List<AttributeProduct> selectAttributeProductList(AttributeProduct attributeProduct);
/**
*
@ -36,7 +36,7 @@ public interface IAttributeProductService extends IService<AttributeProduct>
* @param attributeProduct
* @return
*/
public int insertAttributeProduct(AttributeProduct attributeProduct);
int insertAttributeProduct(AttributeProduct attributeProduct);
/**
*
@ -44,7 +44,7 @@ public interface IAttributeProductService extends IService<AttributeProduct>
* @param attributeProduct
* @return
*/
public int updateAttributeProduct(AttributeProduct attributeProduct);
int updateAttributeProduct(AttributeProduct attributeProduct);
/**
*
@ -52,7 +52,7 @@ public interface IAttributeProductService extends IService<AttributeProduct>
* @param ids
* @return
*/
public int deleteAttributeProductByIds(Long[] ids);
int deleteAttributeProductByIds(Long[] ids);
/**
*
@ -60,5 +60,5 @@ public interface IAttributeProductService extends IService<AttributeProduct>
* @param id
* @return
*/
public int deleteAttributeProductById(Long id);
int deleteAttributeProductById(Long id);
}

View File

@ -20,7 +20,7 @@ public interface IAttributeService extends IService<Attribute>
* @param id
* @return
*/
public Attribute selectAttributeById(Long id);
Attribute selectAttributeById(Long id);
/**
*
@ -28,7 +28,7 @@ public interface IAttributeService extends IService<Attribute>
* @param attribute
* @return
*/
public List<Attribute> selectAttributeList(Attribute attribute);
List<Attribute> selectAttributeList(Attribute attribute);
/**
*
@ -36,7 +36,7 @@ public interface IAttributeService extends IService<Attribute>
* @param attribute
* @return
*/
public int insertAttribute(Attribute attribute);
int insertAttribute(Attribute attribute);
/**
*
@ -44,7 +44,7 @@ public interface IAttributeService extends IService<Attribute>
* @param attribute
* @return
*/
public int updateAttribute(Attribute attribute);
int updateAttribute(Attribute attribute);
/**
*
@ -52,7 +52,7 @@ public interface IAttributeService extends IService<Attribute>
* @param ids
* @return
*/
public int deleteAttributeByIds(Long[] ids);
int deleteAttributeByIds(Long[] ids);
/**
*
@ -60,5 +60,5 @@ public interface IAttributeService extends IService<Attribute>
* @param id
* @return
*/
public int deleteAttributeById(Long id);
int deleteAttributeById(Long id);
}

View File

@ -20,7 +20,7 @@ public interface IBrandCategoryService extends IService<BrandCategory>
* @param id
* @return
*/
public BrandCategory selectBrandCategoryById(Long id);
BrandCategory selectBrandCategoryById(Long id);
/**
*
@ -28,7 +28,7 @@ public interface IBrandCategoryService extends IService<BrandCategory>
* @param brandCategory
* @return
*/
public List<BrandCategory> selectBrandCategoryList(BrandCategory brandCategory);
List<BrandCategory> selectBrandCategoryList(BrandCategory brandCategory);
/**
*
@ -36,7 +36,7 @@ public interface IBrandCategoryService extends IService<BrandCategory>
* @param brandCategory
* @return
*/
public int insertBrandCategory(BrandCategory brandCategory);
int insertBrandCategory(BrandCategory brandCategory);
/**
*
@ -44,7 +44,7 @@ public interface IBrandCategoryService extends IService<BrandCategory>
* @param brandCategory
* @return
*/
public int updateBrandCategory(BrandCategory brandCategory);
int updateBrandCategory(BrandCategory brandCategory);
/**
*
@ -52,7 +52,7 @@ public interface IBrandCategoryService extends IService<BrandCategory>
* @param ids
* @return
*/
public int deleteBrandCategoryByIds(Long[] ids);
int deleteBrandCategoryByIds(Long[] ids);
/**
*
@ -60,5 +60,5 @@ public interface IBrandCategoryService extends IService<BrandCategory>
* @param id
* @return
*/
public int deleteBrandCategoryById(Long id);
int deleteBrandCategoryById(Long id);
}

View File

@ -21,7 +21,7 @@ public interface IBrandService extends IService<Brand>
* @param id
* @return
*/
public Brand selectBrandById(Long id);
Brand selectBrandById(Long id);
/**
*
@ -29,7 +29,7 @@ public interface IBrandService extends IService<Brand>
* @param brand
* @return
*/
public List<Brand> selectBrandList(Brand brand);
List<Brand> selectBrandList(Brand brand);
/**
*
@ -37,7 +37,7 @@ public interface IBrandService extends IService<Brand>
* @param brand
* @return
*/
public int insertBrand(Brand brand);
int insertBrand(Brand brand);
/**
*
@ -45,7 +45,7 @@ public interface IBrandService extends IService<Brand>
* @param brand
* @return
*/
public int updateBrand(Brand brand);
int updateBrand(Brand brand);
/**
*
@ -53,7 +53,7 @@ public interface IBrandService extends IService<Brand>
* @param ids
* @return
*/
public int deleteBrandByIds(Long[] ids);
int deleteBrandByIds(Long[] ids);
/**
*
@ -61,5 +61,5 @@ public interface IBrandService extends IService<Brand>
* @param id
* @return
*/
public int deleteBrandById(Long id);
int deleteBrandById(Long id);
}

View File

@ -20,7 +20,7 @@ public interface ICategoryAttributeGroupService extends IService<CategoryAttribu
* @param id
* @return
*/
public CategoryAttributeGroup selectCategoryAttributeGroupById(Long id);
CategoryAttributeGroup selectCategoryAttributeGroupById(Long id);
/**
*
@ -28,7 +28,7 @@ public interface ICategoryAttributeGroupService extends IService<CategoryAttribu
* @param categoryAttributeGroup
* @return
*/
public List<CategoryAttributeGroup> selectCategoryAttributeGroupList(CategoryAttributeGroup categoryAttributeGroup);
List<CategoryAttributeGroup> selectCategoryAttributeGroupList(CategoryAttributeGroup categoryAttributeGroup);
/**
*
@ -36,7 +36,7 @@ public interface ICategoryAttributeGroupService extends IService<CategoryAttribu
* @param categoryAttributeGroup
* @return
*/
public int insertCategoryAttributeGroup(CategoryAttributeGroup categoryAttributeGroup);
int insertCategoryAttributeGroup(CategoryAttributeGroup categoryAttributeGroup);
/**
*
@ -44,7 +44,7 @@ public interface ICategoryAttributeGroupService extends IService<CategoryAttribu
* @param categoryAttributeGroup
* @return
*/
public int updateCategoryAttributeGroup(CategoryAttributeGroup categoryAttributeGroup);
int updateCategoryAttributeGroup(CategoryAttributeGroup categoryAttributeGroup);
/**
*
@ -52,7 +52,7 @@ public interface ICategoryAttributeGroupService extends IService<CategoryAttribu
* @param ids
* @return
*/
public int deleteCategoryAttributeGroupByIds(Long[] ids);
int deleteCategoryAttributeGroupByIds(Long[] ids);
/**
*
@ -60,5 +60,5 @@ public interface ICategoryAttributeGroupService extends IService<CategoryAttribu
* @param id
* @return
*/
public int deleteCategoryAttributeGroupById(Long id);
int deleteCategoryAttributeGroupById(Long id);
}

View File

@ -19,7 +19,7 @@ public interface ICategoryAttributeService extends IService<CategoryAttribute>
* @param id
* @return
*/
public CategoryAttribute selectCategoryAttributeById(Long id);
CategoryAttribute selectCategoryAttributeById(Long id);
/**
*
@ -27,7 +27,7 @@ public interface ICategoryAttributeService extends IService<CategoryAttribute>
* @param categoryAttribute
* @return
*/
public List<CategoryAttribute> selectCategoryAttributeList(CategoryAttribute categoryAttribute);
List<CategoryAttribute> selectCategoryAttributeList(CategoryAttribute categoryAttribute);
/**
*
@ -35,7 +35,7 @@ public interface ICategoryAttributeService extends IService<CategoryAttribute>
* @param categoryAttribute
* @return
*/
public int insertCategoryAttribute(CategoryAttribute categoryAttribute);
int insertCategoryAttribute(CategoryAttribute categoryAttribute);
/**
*
@ -43,7 +43,7 @@ public interface ICategoryAttributeService extends IService<CategoryAttribute>
* @param categoryAttribute
* @return
*/
public int updateCategoryAttribute(CategoryAttribute categoryAttribute);
int updateCategoryAttribute(CategoryAttribute categoryAttribute);
/**
*
@ -51,7 +51,7 @@ public interface ICategoryAttributeService extends IService<CategoryAttribute>
* @param ids
* @return
*/
public int deleteCategoryAttributeByIds(Long[] ids);
int deleteCategoryAttributeByIds(Long[] ids);
/**
*
@ -59,5 +59,5 @@ public interface ICategoryAttributeService extends IService<CategoryAttribute>
* @param id
* @return
*/
public int deleteCategoryAttributeById(Long id);
int deleteCategoryAttributeById(Long id);
}

View File

@ -5,6 +5,7 @@ import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.CategoryInfo;
import com.muyu.product.domain.model.CategoryInfoSaveModel;
/**
* Service
@ -20,7 +21,7 @@ public interface ICategoryInfoService extends IService<CategoryInfo>
* @param id
* @return
*/
public CategoryInfo selectCategoryInfoById(Long id);
CategoryInfo selectCategoryInfoById(Long id);
/**
*
@ -28,7 +29,7 @@ public interface ICategoryInfoService extends IService<CategoryInfo>
* @param categoryInfo
* @return
*/
public List<CategoryInfo> selectCategoryInfoList(CategoryInfo categoryInfo);
List<CategoryInfo> selectCategoryInfoList(CategoryInfo categoryInfo);
/**
*
@ -36,7 +37,7 @@ public interface ICategoryInfoService extends IService<CategoryInfo>
* @param categoryInfo
* @return
*/
public int insertCategoryInfo(CategoryInfo categoryInfo);
int insertCategoryInfo(CategoryInfo categoryInfo);
/**
*
@ -44,7 +45,7 @@ public interface ICategoryInfoService extends IService<CategoryInfo>
* @param categoryInfo
* @return
*/
public int updateCategoryInfo(CategoryInfo categoryInfo);
int updateCategoryInfo(CategoryInfo categoryInfo);
/**
*
@ -52,7 +53,7 @@ public interface ICategoryInfoService extends IService<CategoryInfo>
* @param ids
* @return
*/
public int deleteCategoryInfoByIds(Long[] ids);
int deleteCategoryInfoByIds(Long[] ids);
/**
*
@ -60,5 +61,7 @@ public interface ICategoryInfoService extends IService<CategoryInfo>
* @param id
* @return
*/
public int deleteCategoryInfoById(Long id);
int deleteCategoryInfoById(Long id);
boolean save(CategoryInfoSaveModel categoryInfoSaveModel);
}

View File

@ -20,7 +20,7 @@ public interface IProductCategoryService extends IService<ProductCategory>
* @param id
* @return
*/
public ProductCategory selectProductCategoryById(Long id);
ProductCategory selectProductCategoryById(Long id);
/**
*
@ -28,7 +28,7 @@ public interface IProductCategoryService extends IService<ProductCategory>
* @param productCategory
* @return
*/
public List<ProductCategory> selectProductCategoryList(ProductCategory productCategory);
List<ProductCategory> selectProductCategoryList(ProductCategory productCategory);
/**
*
@ -36,7 +36,7 @@ public interface IProductCategoryService extends IService<ProductCategory>
* @param productCategory
* @return
*/
public int insertProductCategory(ProductCategory productCategory);
int insertProductCategory(ProductCategory productCategory);
/**
*
@ -44,7 +44,7 @@ public interface IProductCategoryService extends IService<ProductCategory>
* @param productCategory
* @return
*/
public int updateProductCategory(ProductCategory productCategory);
int updateProductCategory(ProductCategory productCategory);
/**
*
@ -52,7 +52,7 @@ public interface IProductCategoryService extends IService<ProductCategory>
* @param ids
* @return
*/
public int deleteProductCategoryByIds(Long[] ids);
int deleteProductCategoryByIds(Long[] ids);
/**
*
@ -60,5 +60,5 @@ public interface IProductCategoryService extends IService<ProductCategory>
* @param id
* @return
*/
public int deleteProductCategoryById(Long id);
int deleteProductCategoryById(Long id);
}

View File

@ -20,7 +20,7 @@ public interface IProductInfoService extends IService<ProductInfo>
* @param id ;
* @return ;
*/
public ProductInfo selectProductInfoById(Long id);
ProductInfo selectProductInfoById(Long id);
/**
* ;
@ -28,7 +28,7 @@ public interface IProductInfoService extends IService<ProductInfo>
* @param productInfo ;
* @return ;
*/
public List<ProductInfo> selectProductInfoList(ProductInfo productInfo);
List<ProductInfo> selectProductInfoList(ProductInfo productInfo);
/**
* ;
@ -36,7 +36,7 @@ public interface IProductInfoService extends IService<ProductInfo>
* @param productInfo ;
* @return
*/
public int insertProductInfo(ProductInfo productInfo);
int insertProductInfo(ProductInfo productInfo);
/**
* ;
@ -44,7 +44,7 @@ public interface IProductInfoService extends IService<ProductInfo>
* @param productInfo ;
* @return
*/
public int updateProductInfo(ProductInfo productInfo);
int updateProductInfo(ProductInfo productInfo);
/**
* ;
@ -52,7 +52,7 @@ public interface IProductInfoService extends IService<ProductInfo>
* @param ids ;
* @return
*/
public int deleteProductInfoByIds(Long[] ids);
int deleteProductInfoByIds(Long[] ids);
/**
* ;
@ -60,5 +60,5 @@ public interface IProductInfoService extends IService<ProductInfo>
* @param id ;
* @return
*/
public int deleteProductInfoById(Long id);
int deleteProductInfoById(Long id);
}

View File

@ -20,7 +20,7 @@ public interface IRuleProductService extends IService<RuleProduct>
* @param id
* @return
*/
public RuleProduct selectRuleProductById(Long id);
RuleProduct selectRuleProductById(Long id);
/**
*
@ -28,7 +28,7 @@ public interface IRuleProductService extends IService<RuleProduct>
* @param ruleProduct
* @return
*/
public List<RuleProduct> selectRuleProductList(RuleProduct ruleProduct);
List<RuleProduct> selectRuleProductList(RuleProduct ruleProduct);
/**
*
@ -36,7 +36,7 @@ public interface IRuleProductService extends IService<RuleProduct>
* @param ruleProduct
* @return
*/
public int insertRuleProduct(RuleProduct ruleProduct);
int insertRuleProduct(RuleProduct ruleProduct);
/**
*
@ -44,7 +44,7 @@ public interface IRuleProductService extends IService<RuleProduct>
* @param ruleProduct
* @return
*/
public int updateRuleProduct(RuleProduct ruleProduct);
int updateRuleProduct(RuleProduct ruleProduct);
/**
*
@ -52,7 +52,7 @@ public interface IRuleProductService extends IService<RuleProduct>
* @param ids
* @return
*/
public int deleteRuleProductByIds(Long[] ids);
int deleteRuleProductByIds(Long[] ids);
/**
*
@ -60,5 +60,5 @@ public interface IRuleProductService extends IService<RuleProduct>
* @param id
* @return
*/
public int deleteRuleProductById(Long id);
int deleteRuleProductById(Long id);
}

View File

@ -20,7 +20,7 @@ public interface IRuleService extends IService<Rule>
* @param id
* @return
*/
public Rule selectRuleById(Long id);
Rule selectRuleById(Long id);
/**
*
@ -28,7 +28,7 @@ public interface IRuleService extends IService<Rule>
* @param rule
* @return
*/
public List<Rule> selectRuleList(Rule rule);
List<Rule> selectRuleList(Rule rule);
/**
*
@ -36,7 +36,7 @@ public interface IRuleService extends IService<Rule>
* @param rule
* @return
*/
public int insertRule(Rule rule);
int insertRule(Rule rule);
/**
*
@ -44,7 +44,7 @@ public interface IRuleService extends IService<Rule>
* @param rule
* @return
*/
public int updateRule(Rule rule);
int updateRule(Rule rule);
/**
*
@ -52,7 +52,7 @@ public interface IRuleService extends IService<Rule>
* @param ids
* @return
*/
public int deleteRuleByIds(Long[] ids);
int deleteRuleByIds(Long[] ids);
/**
*
@ -60,5 +60,5 @@ public interface IRuleService extends IService<Rule>
* @param id
* @return
*/
public int deleteRuleById(Long id);
int deleteRuleById(Long id);
}

View File

@ -4,6 +4,10 @@ import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils;
import com.muyu.product.domain.CategoryAttribute;
import com.muyu.product.domain.CategoryAttributeGroup;
import com.muyu.product.domain.model.CategoryInfoSaveModel;
import com.muyu.product.service.ICategoryAttributeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -23,9 +27,11 @@ public class CategoryInfoServiceImpl extends ServiceImpl<CategoryInfoMapper,Cate
{
@Autowired
private CategoryInfoMapper categoryInfoMapper;
@Autowired
private ICategoryAttributeService categoryAttributeService;
@Autowired
private CategoryAttributeGroupServiceImpl categoryAttributeGroupService;
// @Autowired
// private ICategoryInfoService categoryInfoService;
/**
*
*
@ -99,4 +105,31 @@ public class CategoryInfoServiceImpl extends ServiceImpl<CategoryInfoMapper,Cate
{
return categoryInfoMapper.deleteCategoryInfoById(id);
}
@Override
public boolean save(CategoryInfoSaveModel categoryInfoSaveModel) {
//通过品类信息构建体构建品类对象
CategoryInfo categoryInfo = CategoryInfo.saveCategoryBuilder(categoryInfoSaveModel);
//调用重载方法
boolean save = this.save(categoryInfo);
//获取当前品类主键
Long id = categoryInfo.getId();
//获取已选属性主键集
List<Long> checkedAttributeIds = categoryInfoSaveModel.getCheckedAttributeIds();
//判断已选属性集是否为空
if (checkedAttributeIds != null && !checkedAttributeIds.isEmpty()){
categoryAttributeService.saveBatch(
checkedAttributeIds.stream()
.map(attributeId -> CategoryAttribute.categoryBuilder(id,attributeId)).toList()
);
}
List<Long> attributeGroupIds = categoryInfoSaveModel.getAttributeGroupIds();
if (attributeGroupIds != null && !attributeGroupIds.isEmpty()){
categoryAttributeGroupService.saveBatch(
attributeGroupIds.stream().
map(groupId -> CategoryAttributeGroup.saveBuilder(id,groupId)).toList()
);
}
return save;
}
}

View File

@ -19,7 +19,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public List<SysDept> selectDeptList (SysDept dept);
List<SysDept> selectDeptList(SysDept dept);
/**
* ID
@ -29,7 +29,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public List<Long> selectDeptListByRoleId (@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
/**
* ID
@ -38,7 +38,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public SysDept selectDeptById (Long deptId);
SysDept selectDeptById(Long deptId);
/**
* ID
@ -47,7 +47,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public List<SysDept> selectChildrenDeptById (Long deptId);
List<SysDept> selectChildrenDeptById(Long deptId);
/**
* ID
@ -56,7 +56,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public int selectNormalChildrenDeptById (Long deptId);
int selectNormalChildrenDeptById(Long deptId);
/**
*
@ -65,7 +65,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public int hasChildByDeptId (Long deptId);
int hasChildByDeptId(Long deptId);
/**
*
@ -74,7 +74,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public int checkDeptExistUser (Long deptId);
int checkDeptExistUser(Long deptId);
/**
*
@ -84,7 +84,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public SysDept checkDeptNameUnique (@Param("deptName") String deptName, @Param("parentId") Long parentId);
SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
/**
*
@ -93,7 +93,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public int insertDept (SysDept dept);
int insertDept(SysDept dept);
/**
*
@ -102,14 +102,14 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public int updateDept (SysDept dept);
int updateDept(SysDept dept);
/**
*
*
* @param deptIds ID
*/
public void updateDeptStatusNormal (Long[] deptIds);
void updateDeptStatusNormal(Long[] deptIds);
/**
*
@ -118,7 +118,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public int updateDeptChildren (@Param("depts") List<SysDept> depts);
int updateDeptChildren(@Param("depts") List<SysDept> depts);
/**
*
@ -127,5 +127,5 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
*
* @return
*/
public int deleteDeptById (Long deptId);
int deleteDeptById(Long deptId);
}

View File

@ -19,7 +19,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
*
* @return
*/
public List<SysDictData> selectDictDataList (SysDictData dictData);
List<SysDictData> selectDictDataList(SysDictData dictData);
/**
*
@ -28,7 +28,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
*
* @return
*/
public List<SysDictData> selectDictDataByType (String dictType);
List<SysDictData> selectDictDataByType(String dictType);
/**
*
@ -38,7 +38,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
*
* @return
*/
public String selectDictLabel (@Param("dictType") String dictType, @Param("dictValue") String dictValue);
String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue);
/**
* ID
@ -47,7 +47,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
*
* @return
*/
public SysDictData selectDictDataById (Long dictCode);
SysDictData selectDictDataById(Long dictCode);
/**
*
@ -56,7 +56,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
*
* @return
*/
public int countDictDataByType (String dictType);
int countDictDataByType(String dictType);
/**
* ID
@ -65,7 +65,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
*
* @return
*/
public int deleteDictDataById (Long dictCode);
int deleteDictDataById(Long dictCode);
/**
*
@ -74,7 +74,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
*
* @return
*/
public int deleteDictDataByIds (Long[] dictCodes);
int deleteDictDataByIds(Long[] dictCodes);
/**
*
@ -83,7 +83,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
*
* @return
*/
public int insertDictData (SysDictData dictData);
int insertDictData(SysDictData dictData);
/**
*
@ -92,7 +92,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
*
* @return
*/
public int updateDictData (SysDictData dictData);
int updateDictData(SysDictData dictData);
/**
*
@ -102,5 +102,5 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
*
* @return
*/
public int updateDictDataType (@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType);
int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType);
}

View File

@ -18,14 +18,14 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
*
* @return
*/
public List<SysDictType> selectDictTypeList (SysDictType dictType);
List<SysDictType> selectDictTypeList(SysDictType dictType);
/**
*
*
* @return
*/
public List<SysDictType> selectDictTypeAll ();
List<SysDictType> selectDictTypeAll();
/**
* ID
@ -34,7 +34,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
*
* @return
*/
public SysDictType selectDictTypeById (Long dictId);
SysDictType selectDictTypeById(Long dictId);
/**
*
@ -43,7 +43,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
*
* @return
*/
public SysDictType selectDictTypeByType (String dictType);
SysDictType selectDictTypeByType(String dictType);
/**
* ID
@ -52,7 +52,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
*
* @return
*/
public int deleteDictTypeById (Long dictId);
int deleteDictTypeById(Long dictId);
/**
*
@ -61,7 +61,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
*
* @return
*/
public int deleteDictTypeByIds (Long[] dictIds);
int deleteDictTypeByIds(Long[] dictIds);
/**
*
@ -70,7 +70,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
*
* @return
*/
public int insertDictType (SysDictType dictType);
int insertDictType(SysDictType dictType);
/**
*
@ -79,7 +79,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
*
* @return
*/
public int updateDictType (SysDictType dictType);
int updateDictType(SysDictType dictType);
/**
*
@ -88,5 +88,5 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
*
* @return
*/
public SysDictType checkDictTypeUnique (String dictType);
SysDictType checkDictTypeUnique(String dictType);
}

View File

@ -16,7 +16,7 @@ public interface SysLogininforMapper extends BaseMapper<SysLogininfor> {
*
* @param logininfor 访
*/
public int insertLogininfor (SysLogininfor logininfor);
int insertLogininfor(SysLogininfor logininfor);
/**
*
@ -25,7 +25,7 @@ public interface SysLogininforMapper extends BaseMapper<SysLogininfor> {
*
* @return
*/
public List<SysLogininfor> selectLogininforList (SysLogininfor logininfor);
List<SysLogininfor> selectLogininforList(SysLogininfor logininfor);
/**
*
@ -34,12 +34,12 @@ public interface SysLogininforMapper extends BaseMapper<SysLogininfor> {
*
* @return
*/
public int deleteLogininforByIds (Long[] infoIds);
int deleteLogininforByIds(Long[] infoIds);
/**
*
*
* @return
*/
public int cleanLogininfor ();
int cleanLogininfor();
}

View File

@ -19,14 +19,14 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public List<SysMenu> selectMenuList (SysMenu menu);
List<SysMenu> selectMenuList(SysMenu menu);
/**
*
*
* @return
*/
public List<String> selectMenuPerms ();
List<String> selectMenuPerms();
/**
*
@ -35,7 +35,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public List<SysMenu> selectMenuListByUserId (SysMenu menu);
List<SysMenu> selectMenuListByUserId(SysMenu menu);
/**
* ID
@ -44,7 +44,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public List<String> selectMenuPermsByRoleId (Long roleId);
List<String> selectMenuPermsByRoleId(Long roleId);
/**
* ID
@ -53,14 +53,14 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public List<String> selectMenuPermsByUserId (Long userId);
List<String> selectMenuPermsByUserId(Long userId);
/**
* ID
*
* @return
*/
public List<SysMenu> selectMenuTreeAll ();
List<SysMenu> selectMenuTreeAll();
/**
* ID
@ -69,7 +69,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public List<SysMenu> selectMenuTreeByUserId (Long userId);
List<SysMenu> selectMenuTreeByUserId(Long userId);
/**
* ID
@ -79,7 +79,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public List<Long> selectMenuListByRoleId (@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
/**
* ID
@ -88,7 +88,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public SysMenu selectMenuById (Long menuId);
SysMenu selectMenuById(Long menuId);
/**
*
@ -97,7 +97,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public int hasChildByMenuId (Long menuId);
int hasChildByMenuId(Long menuId);
/**
*
@ -106,7 +106,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public int insertMenu (SysMenu menu);
int insertMenu(SysMenu menu);
/**
*
@ -115,7 +115,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public int updateMenu (SysMenu menu);
int updateMenu(SysMenu menu);
/**
*
@ -124,7 +124,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public int deleteMenuById (Long menuId);
int deleteMenuById(Long menuId);
/**
*
@ -134,5 +134,5 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
*
* @return
*/
public SysMenu checkMenuNameUnique (@Param("menuName") String menuName, @Param("parentId") Long parentId);
SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
}

View File

@ -18,7 +18,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
*
* @return
*/
public SysNotice selectNoticeById (Long noticeId);
SysNotice selectNoticeById(Long noticeId);
/**
*
@ -27,7 +27,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
*
* @return
*/
public List<SysNotice> selectNoticeList (SysNotice notice);
List<SysNotice> selectNoticeList(SysNotice notice);
/**
*
@ -36,7 +36,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
*
* @return
*/
public int insertNotice (SysNotice notice);
int insertNotice(SysNotice notice);
/**
*
@ -45,7 +45,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
*
* @return
*/
public int updateNotice (SysNotice notice);
int updateNotice(SysNotice notice);
/**
*
@ -54,7 +54,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
*
* @return
*/
public int deleteNoticeById (Long noticeId);
int deleteNoticeById(Long noticeId);
/**
*
@ -63,5 +63,5 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
*
* @return
*/
public int deleteNoticeByIds (Long[] noticeIds);
int deleteNoticeByIds(Long[] noticeIds);
}

View File

@ -16,7 +16,7 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
*
* @param operLog
*/
public int insertOperlog (SysOperLog operLog);
int insertOperlog(SysOperLog operLog);
/**
*
@ -25,7 +25,7 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
*
* @return
*/
public List<SysOperLog> selectOperLogList (SysOperLog operLog);
List<SysOperLog> selectOperLogList(SysOperLog operLog);
/**
*
@ -34,7 +34,7 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
*
* @return
*/
public int deleteOperLogByIds (Long[] operIds);
int deleteOperLogByIds(Long[] operIds);
/**
*
@ -43,10 +43,10 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
*
* @return
*/
public SysOperLog selectOperLogById (Long operId);
SysOperLog selectOperLogById(Long operId);
/**
*
*/
public void cleanOperLog ();
void cleanOperLog();
}

View File

@ -18,14 +18,14 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
*
* @return
*/
public List<SysPost> selectPostList (SysPost post);
List<SysPost> selectPostList(SysPost post);
/**
*
*
* @return
*/
public List<SysPost> selectPostAll ();
List<SysPost> selectPostAll();
/**
* ID
@ -34,7 +34,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
*
* @return
*/
public SysPost selectPostById (Long postId);
SysPost selectPostById(Long postId);
/**
* ID
@ -43,7 +43,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
*
* @return ID
*/
public List<Long> selectPostListByUserId (Long userId);
List<Long> selectPostListByUserId(Long userId);
/**
*
@ -52,7 +52,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
*
* @return
*/
public List<SysPost> selectPostsByUserName (String userName);
List<SysPost> selectPostsByUserName(String userName);
/**
*
@ -61,7 +61,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
*
* @return
*/
public int deletePostById (Long postId);
int deletePostById(Long postId);
/**
*
@ -70,7 +70,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
*
* @return
*/
public int deletePostByIds (Long[] postIds);
int deletePostByIds(Long[] postIds);
/**
*
@ -79,7 +79,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
*
* @return
*/
public int updatePost (SysPost post);
int updatePost(SysPost post);
/**
*
@ -88,7 +88,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
*
* @return
*/
public int insertPost (SysPost post);
int insertPost(SysPost post);
/**
*
@ -97,7 +97,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
*
* @return
*/
public SysPost checkPostNameUnique (String postName);
SysPost checkPostNameUnique(String postName);
/**
*
@ -106,5 +106,5 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
*
* @return
*/
public SysPost checkPostCodeUnique (String postCode);
SysPost checkPostCodeUnique(String postCode);
}

View File

@ -19,7 +19,7 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
*
* @return
*/
public int deleteRoleDeptByRoleId (Long roleId);
int deleteRoleDeptByRoleId(Long roleId);
/**
*
@ -28,7 +28,7 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
*
* @return
*/
public int deleteRoleDept (Long[] ids);
int deleteRoleDept(Long[] ids);
/**
* 使
@ -37,7 +37,7 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
*
* @return
*/
public int selectCountRoleDeptByDeptId (Long deptId);
int selectCountRoleDeptByDeptId(Long deptId);
/**
*
@ -46,5 +46,5 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
*
* @return
*/
public int batchRoleDept (List<SysRoleDept> roleDeptList);
int batchRoleDept(List<SysRoleDept> roleDeptList);
}

View File

@ -18,7 +18,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
*
* @return
*/
public List<SysRole> selectRoleList (SysRole role);
List<SysRole> selectRoleList(SysRole role);
/**
* ID
@ -27,14 +27,14 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
*
* @return
*/
public List<SysRole> selectRolePermissionByUserId (Long userId);
List<SysRole> selectRolePermissionByUserId(Long userId);
/**
*
*
* @return
*/
public List<SysRole> selectRoleAll ();
List<SysRole> selectRoleAll();
/**
* ID
@ -43,7 +43,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
*
* @return ID
*/
public List<Long> selectRoleListByUserId (Long userId);
List<Long> selectRoleListByUserId(Long userId);
/**
* ID
@ -52,7 +52,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
*
* @return
*/
public SysRole selectRoleById (Long roleId);
SysRole selectRoleById(Long roleId);
/**
* ID
@ -61,7 +61,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
*
* @return
*/
public List<SysRole> selectRolesByUserName (String userName);
List<SysRole> selectRolesByUserName(String userName);
/**
*
@ -70,7 +70,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
*
* @return
*/
public SysRole checkRoleNameUnique (String roleName);
SysRole checkRoleNameUnique(String roleName);
/**
*
@ -79,7 +79,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
*
* @return
*/
public SysRole checkRoleKeyUnique (String roleKey);
SysRole checkRoleKeyUnique(String roleKey);
/**
*
@ -88,7 +88,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
*
* @return
*/
public int updateRole (SysRole role);
int updateRole(SysRole role);
/**
*
@ -97,7 +97,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
*
* @return
*/
public int insertRole (SysRole role);
int insertRole(SysRole role);
/**
* ID
@ -106,7 +106,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
*
* @return
*/
public int deleteRoleById (Long roleId);
int deleteRoleById(Long roleId);
/**
*
@ -115,5 +115,5 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
*
* @return
*/
public int deleteRoleByIds (Long[] roleIds);
int deleteRoleByIds(Long[] roleIds);
}

View File

@ -19,7 +19,7 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
*
* @return
*/
public int checkMenuExistRole (Long menuId);
int checkMenuExistRole(Long menuId);
/**
* ID
@ -28,7 +28,7 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
*
* @return
*/
public int deleteRoleMenuByRoleId (Long roleId);
int deleteRoleMenuByRoleId(Long roleId);
/**
*
@ -37,7 +37,7 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
*
* @return
*/
public int deleteRoleMenu (Long[] ids);
int deleteRoleMenu(Long[] ids);
/**
*
@ -46,5 +46,5 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
*
* @return
*/
public int batchRoleMenu (List<SysRoleMenu> roleMenuList);
int batchRoleMenu(List<SysRoleMenu> roleMenuList);
}

View File

@ -19,7 +19,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public List<SysUser> selectUserList (SysUser sysUser);
List<SysUser> selectUserList(SysUser sysUser);
/**
*
@ -28,7 +28,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public List<SysUser> selectAllocatedList (SysUser user);
List<SysUser> selectAllocatedList(SysUser user);
/**
*
@ -37,7 +37,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public List<SysUser> selectUnallocatedList (SysUser user);
List<SysUser> selectUnallocatedList(SysUser user);
/**
*
@ -46,7 +46,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public SysUser selectUserByUserName (String userName);
SysUser selectUserByUserName(String userName);
/**
* ID
@ -55,7 +55,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public SysUser selectUserById (Long userId);
SysUser selectUserById(Long userId);
/**
*
@ -64,7 +64,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public int insertUser (SysUser user);
int insertUser(SysUser user);
/**
*
@ -73,7 +73,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public int updateUser (SysUser user);
int updateUser(SysUser user);
/**
*
@ -83,7 +83,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public int updateUserAvatar (@Param("userName") String userName, @Param("avatar") String avatar);
int updateUserAvatar(@Param("userName") String userName, @Param("avatar") String avatar);
/**
*
@ -93,7 +93,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public int resetUserPwd (@Param("userName") String userName, @Param("password") String password);
int resetUserPwd(@Param("userName") String userName, @Param("password") String password);
/**
* ID
@ -102,7 +102,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public int deleteUserById (Long userId);
int deleteUserById(Long userId);
/**
*
@ -111,7 +111,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public int deleteUserByIds (Long[] userIds);
int deleteUserByIds(Long[] userIds);
/**
*
@ -120,7 +120,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public SysUser checkUserNameUnique (String userName);
SysUser checkUserNameUnique(String userName);
/**
*
@ -129,7 +129,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public SysUser checkPhoneUnique (String phonenumber);
SysUser checkPhoneUnique(String phonenumber);
/**
* email
@ -138,5 +138,5 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*
* @return
*/
public SysUser checkEmailUnique (String email);
SysUser checkEmailUnique(String email);
}

View File

@ -18,7 +18,7 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
*
* @return
*/
public int deleteUserPostByUserId (Long userId);
int deleteUserPostByUserId(Long userId);
/**
* ID使
@ -27,7 +27,7 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
*
* @return
*/
public int countUserPostById (Long postId);
int countUserPostById(Long postId);
/**
*
@ -36,7 +36,7 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
*
* @return
*/
public int deleteUserPost (Long[] ids);
int deleteUserPost(Long[] ids);
/**
*
@ -45,5 +45,5 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
*
* @return
*/
public int batchUserPost (List<SysUserPost> userPostList);
int batchUserPost(List<SysUserPost> userPostList);
}

View File

@ -19,7 +19,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
*
* @return
*/
public int deleteUserRoleByUserId (Long userId);
int deleteUserRoleByUserId(Long userId);
/**
*
@ -28,7 +28,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
*
* @return
*/
public int deleteUserRole (Long[] ids);
int deleteUserRole(Long[] ids);
/**
* ID使
@ -37,7 +37,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
*
* @return
*/
public int countUserRoleByRoleId (Long roleId);
int countUserRoleByRoleId(Long roleId);
/**
*
@ -46,7 +46,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
*
* @return
*/
public int batchUserRole (List<SysUserRole> userRoleList);
int batchUserRole(List<SysUserRole> userRoleList);
/**
*
@ -55,7 +55,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
*
* @return
*/
public int deleteUserRoleInfo (SysUserRole userRole);
int deleteUserRoleInfo(SysUserRole userRole);
/**
*
@ -65,5 +65,5 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
*
* @return
*/
public int deleteUserRoleInfos (@Param("roleId") Long roleId, @Param("userIds") Long[] userIds);
int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds);
}

View File

@ -35,10 +35,10 @@ public interface SysConfigService extends IService<SysConfig> {
/**
*
*/
public void clearConfigCache ();
void clearConfigCache();
/**
*
*/
public void loadingConfigCache ();
void loadingConfigCache();
}

View File

@ -19,7 +19,7 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public List<SysDept> selectDeptList (SysDept dept);
List<SysDept> selectDeptList(SysDept dept);
/**
*
@ -28,7 +28,7 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public List<TreeSelect> selectDeptTreeList (SysDept dept);
List<TreeSelect> selectDeptTreeList(SysDept dept);
/**
*
@ -37,7 +37,7 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public List<SysDept> buildDeptTree (List<SysDept> depts);
List<SysDept> buildDeptTree(List<SysDept> depts);
/**
*
@ -46,7 +46,7 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public List<TreeSelect> buildDeptTreeSelect (List<SysDept> depts);
List<TreeSelect> buildDeptTreeSelect(List<SysDept> depts);
/**
* ID
@ -55,7 +55,7 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public List<Long> selectDeptListByRoleId (Long roleId);
List<Long> selectDeptListByRoleId(Long roleId);
/**
* ID
@ -64,7 +64,7 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public SysDept selectDeptById (Long deptId);
SysDept selectDeptById(Long deptId);
/**
* ID
@ -73,7 +73,7 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public int selectNormalChildrenDeptById (Long deptId);
int selectNormalChildrenDeptById(Long deptId);
/**
*
@ -82,7 +82,7 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public boolean hasChildByDeptId (Long deptId);
boolean hasChildByDeptId(Long deptId);
/**
*
@ -91,7 +91,7 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return true false
*/
public boolean checkDeptExistUser (Long deptId);
boolean checkDeptExistUser(Long deptId);
/**
*
@ -100,14 +100,14 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public boolean checkDeptNameUnique (SysDept dept);
boolean checkDeptNameUnique(SysDept dept);
/**
*
*
* @param deptId id
*/
public void checkDeptDataScope (Long deptId);
void checkDeptDataScope(Long deptId);
/**
*
@ -116,7 +116,7 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public int insertDept (SysDept dept);
int insertDept(SysDept dept);
/**
*
@ -125,7 +125,7 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public int updateDept (SysDept dept);
int updateDept(SysDept dept);
/**
*
@ -134,5 +134,5 @@ public interface SysDeptService extends IService<SysDept> {
*
* @return
*/
public int deleteDeptById (Long deptId);
int deleteDeptById(Long deptId);
}

View File

@ -18,7 +18,7 @@ public interface SysDictDataService extends IService<SysDictData> {
*
* @return
*/
public List<SysDictData> selectDictDataList (SysDictData dictData);
List<SysDictData> selectDictDataList(SysDictData dictData);
/**
*
@ -28,7 +28,7 @@ public interface SysDictDataService extends IService<SysDictData> {
*
* @return
*/
public String selectDictLabel (String dictType, String dictValue);
String selectDictLabel(String dictType, String dictValue);
/**
* ID
@ -37,14 +37,14 @@ public interface SysDictDataService extends IService<SysDictData> {
*
* @return
*/
public SysDictData selectDictDataById (Long dictCode);
SysDictData selectDictDataById(Long dictCode);
/**
*
*
* @param dictCodes ID
*/
public void deleteDictDataByIds (Long[] dictCodes);
void deleteDictDataByIds(Long[] dictCodes);
/**
*
@ -53,7 +53,7 @@ public interface SysDictDataService extends IService<SysDictData> {
*
* @return
*/
public int insertDictData (SysDictData dictData);
int insertDictData(SysDictData dictData);
/**
*
@ -62,5 +62,5 @@ public interface SysDictDataService extends IService<SysDictData> {
*
* @return
*/
public int updateDictData (SysDictData dictData);
int updateDictData(SysDictData dictData);
}

View File

@ -19,14 +19,14 @@ public interface SysDictTypeService extends IService<SysDictType> {
*
* @return
*/
public List<SysDictType> selectDictTypeList (SysDictType dictType);
List<SysDictType> selectDictTypeList(SysDictType dictType);
/**
*
*
* @return
*/
public List<SysDictType> selectDictTypeAll ();
List<SysDictType> selectDictTypeAll();
/**
*
@ -35,7 +35,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
*
* @return
*/
public List<SysDictData> selectDictDataByType (String dictType);
List<SysDictData> selectDictDataByType(String dictType);
/**
* ID
@ -44,7 +44,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
*
* @return
*/
public SysDictType selectDictTypeById (Long dictId);
SysDictType selectDictTypeById(Long dictId);
/**
*
@ -53,29 +53,29 @@ public interface SysDictTypeService extends IService<SysDictType> {
*
* @return
*/
public SysDictType selectDictTypeByType (String dictType);
SysDictType selectDictTypeByType(String dictType);
/**
*
*
* @param dictIds ID
*/
public void deleteDictTypeByIds (Long[] dictIds);
void deleteDictTypeByIds(Long[] dictIds);
/**
*
*/
public void loadingDictCache ();
void loadingDictCache();
/**
*
*/
public void clearDictCache ();
void clearDictCache();
/**
*
*/
public void resetDictCache ();
void resetDictCache();
/**
*
@ -84,7 +84,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
*
* @return
*/
public int insertDictType (SysDictType dictType);
int insertDictType(SysDictType dictType);
/**
*
@ -93,7 +93,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
*
* @return
*/
public int updateDictType (SysDictType dictType);
int updateDictType(SysDictType dictType);
/**
*
@ -102,5 +102,5 @@ public interface SysDictTypeService extends IService<SysDictType> {
*
* @return
*/
public boolean checkDictTypeUnique (SysDictType dictType);
boolean checkDictTypeUnique(SysDictType dictType);
}

Some files were not shown because too many files have changed in this diff Show More