商品出入库 和 耗材出入库 日志记录 明确描述
This commit is contained in:
@@ -96,6 +96,26 @@ public class LogServiceImpl implements LogService {
|
||||
String value = SpelUtil.generateKeyBySpEL(split[1], joinPoint);
|
||||
// 描述
|
||||
log.setDescription(split[0] + ":" + value);
|
||||
}
|
||||
if (split.length == 3) {
|
||||
// String v1 = SpelUtil.generateKeyBySpEL(split[1], joinPoint);
|
||||
String v2 = SpelUtil.generateKeyBySpEL(split[2], joinPoint);
|
||||
if (methodName.contains("createOutAndONOperate")) {
|
||||
//subType 1入库 -1出库
|
||||
if ("purchase".equals(v2) || "purveyor".equals(v2)) {
|
||||
v2 = "入库";
|
||||
} else {
|
||||
v2 = "出库";
|
||||
}
|
||||
}else if(methodName.contains("stockInOut")){
|
||||
if (("in".equals(v2) || "purveyor".equals(v2))) {
|
||||
v2 = "入库";
|
||||
} else {
|
||||
v2 = "出库";
|
||||
}
|
||||
}
|
||||
// 描述
|
||||
log.setDescription(split[0] + ":" + v2 );
|
||||
}else {
|
||||
log.setDescription(split[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user