|
|
@ -90,10 +90,11 @@ public class MapperSupport extends MybatisPlugin {
|
|
|
|
String userID = currentUser().getId();
|
|
|
|
String userID = currentUser().getId();
|
|
|
|
switch (sqlType) {
|
|
|
|
switch (sqlType) {
|
|
|
|
case INSERT:
|
|
|
|
case INSERT:
|
|
|
|
if (!isEmpty(entity.getCreatedBy())) return;
|
|
|
|
if (isEmpty(entity.getCreatedBy())) {
|
|
|
|
entity.setCreatedBy(userID);
|
|
|
|
entity.setCreatedBy(userID);
|
|
|
|
entity.setCreatedAt(now);
|
|
|
|
|
|
|
|
entity.setModifiedBy(userID);
|
|
|
|
entity.setModifiedBy(userID);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
entity.setCreatedAt(now);
|
|
|
|
entity.setLastModified(now);
|
|
|
|
entity.setLastModified(now);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case UPDATE:
|
|
|
|
case UPDATE:
|
|
|
|