Commit aa1a380a by carrieyzzhang

notice

parent 20cd42ae
...@@ -28,8 +28,8 @@ public class IONotice { ...@@ -28,8 +28,8 @@ public class IONotice {
private String deployUserName; private String deployUserName;
private String deployAccountEmail; private String deployAccountEmail;
private Long ioAccount; private String ioAccount;
private Long trackAccount; private String trackAccount;
private String trackAccountList; private String trackAccountList;
private String ioAccountList; private String ioAccountList;
private Boolean trackAll; private Boolean trackAll;
...@@ -157,20 +157,20 @@ public class IONotice { ...@@ -157,20 +157,20 @@ public class IONotice {
this.deployAccountEmail = deployAccountEmail; this.deployAccountEmail = deployAccountEmail;
} }
public Long getIoAccount() { public String getIoAccount() {
return ioAccount; return ioAccount;
} }
public void setIoAccount(Long ioAccount) { public void setIoAccount(String ioAccount) {
this.ioAccount = ioAccount; this.ioAccount = ioAccount;
} }
@Transient @Transient
public Long getTrackAccount() { public String getTrackAccount() {
return trackAccount; return trackAccount;
} }
public void setTrackAccount(Long trackAccount) { public void setTrackAccount(String trackAccount) {
this.trackAccount = trackAccount; this.trackAccount = trackAccount;
} }
......
...@@ -13,7 +13,7 @@ import java.util.List; ...@@ -13,7 +13,7 @@ import java.util.List;
@Transactional @Transactional
public interface NoticeRepository extends JpaRepository<IONotice, Long> { 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); 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