Commit aa1a380a by carrieyzzhang

notice

parent 20cd42ae
......@@ -28,8 +28,8 @@ public class IONotice {
private String deployUserName;
private String deployAccountEmail;
private Long ioAccount;
private Long trackAccount;
private String ioAccount;
private String trackAccount;
private String trackAccountList;
private String ioAccountList;
private Boolean trackAll;
......@@ -157,20 +157,20 @@ public class IONotice {
this.deployAccountEmail = deployAccountEmail;
}
public Long getIoAccount() {
public String getIoAccount() {
return ioAccount;
}
public void setIoAccount(Long ioAccount) {
public void setIoAccount(String ioAccount) {
this.ioAccount = ioAccount;
}
@Transient
public Long getTrackAccount() {
public String getTrackAccount() {
return trackAccount;
}
public void setTrackAccount(Long trackAccount) {
public void setTrackAccount(String trackAccount) {
this.trackAccount = trackAccount;
}
......
......@@ -13,7 +13,7 @@ import java.util.List;
@Transactional
public interface NoticeRepository extends JpaRepository<IONotice, Long> {
@Query(value = "select * from ionotice n where n.isdeploy is true and (io_account like %?1% or io_account = -1) order by deploy_date desc", nativeQuery = true)
@Query(value = "select * from ionotice n where n.isdeploy is true and (io_account like %?1% or io_account = '-1') order by deploy_date desc", nativeQuery = true)
List<IONotice> listRecentDeployNotice(String email);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment