This commit is contained in:
2024-04-18 16:22:03 +08:00
parent f7fe3662c6
commit 6f0df4d0eb

View File

@@ -7,7 +7,6 @@ import jakarta.persistence.Entity;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.Formula;
@Data
@Entity
@@ -30,13 +29,6 @@ public class SmsEntity extends OrgCommonEntity {
@Comment("发送状态")
private String execStatus;
@Formula(
"(select i.name\n"
+ "from t_dictionary d,\n"
+ " t_dictionary_item i\n"
+ "where d.id = i.dictionary_id\n"
+ " and d.code = 'common.execStatus'\n"
+ " and i.code = exec_status)")
private String execStatusName;
}