XMTT 5 jaren geleden
bovenliggende
commit
7ac8aeed73
1 gewijzigde bestanden met toevoegingen van 4 en 9 verwijderingen
  1. 4 9
      src/main/java/com/ekexiu/portal/resResult/ResearchResultService.java

+ 4 - 9
src/main/java/com/ekexiu/portal/resResult/ResearchResultService.java

@ -7,9 +7,7 @@ import org.jfw.apt.annotation.Nullable;
7 7
import org.jfw.apt.web.annotation.Path;
8 8
import org.jfw.apt.web.annotation.operate.Get;
9 9
import org.jfw.apt.web.annotation.operate.Post;
10
import org.jfw.apt.web.annotation.param.FieldParam;
11 10
import org.jfw.apt.web.annotation.param.JdbcConn;
12
import org.jfw.apt.web.annotation.param.RequestParam;
13 11
import org.jfw.apt.web.annotation.param.Upload;
14 12
import org.jfw.util.ListUtil;
15 13
import org.jfw.util.PageQueryResult;
@ -158,31 +156,28 @@ public class ResearchResultService {
158 156
159 157
    @Post
160 158
    @Path("/draft")
161
    public String draft(@JdbcConn(true) Connection con, @RequestParam(fields={@FieldParam(value = "platform",valueClass = Boolean.class),@FieldParam(value = "console",valueClass = Boolean.class),@FieldParam(value="professor",valueClass = Boolean.class)}) ResearchResult researchResult, @Nullable String[] researchers) throws SQLException, IOException {
159
    public String draft(@JdbcConn(true) Connection con, ResearchResult researchResult, @Nullable String[] researchers) throws SQLException, IOException {
162 160
        researchResult.setStatus("2");
163 161
        return insert(con, researchResult, researchers);
164 162
    }
165 163
166 164
    @Post
167 165
    @Path("/publish")
168
    public String publish(@JdbcConn(true) Connection con,
169
                          @RequestParam(fields={@FieldParam(value = "platform",valueClass = Boolean.class),@FieldParam(value = "console",valueClass = Boolean.class),@FieldParam(value="professor",valueClass = Boolean.class)}) ResearchResult researchResult, @Nullable String[] researchers) throws SQLException, IOException {
166
    public String publish(@JdbcConn(true) Connection con, ResearchResult researchResult, @Nullable String[] researchers) throws SQLException, IOException {
170 167
        researchResult.setStatus("1");
171 168
        return insert(con, researchResult, researchers);
172 169
    }
173 170
174 171
    @Post
175 172
    @Path("/draft/update")
176
    public boolean updateDraft(@JdbcConn(true) Connection con,
177
                               @RequestParam(fields={@FieldParam(value = "platform",valueClass = Boolean.class),@FieldParam(value = "console",valueClass = Boolean.class),@FieldParam(value="professor",valueClass = Boolean.class)}) ResearchResult researchResult, @Nullable String[] researchers) throws SQLException, IOException {
173
    public boolean updateDraft(@JdbcConn(true) Connection con, ResearchResult researchResult, @Nullable String[] researchers) throws SQLException, IOException {
178 174
        researchResult.setStatus("2");
179 175
        return update(con, researchResult,researchers);
180 176
    }
181 177
182 178
    @Post
183 179
    @Path("/publish/update")
184
    public boolean updatePublish(@JdbcConn(true) Connection con,
185
                                 @RequestParam(fields={@FieldParam(value = "platform",valueClass = Boolean.class),@FieldParam(value = "console",valueClass = Boolean.class),@FieldParam(value="professor",valueClass = Boolean.class)}) ResearchResult researchResult, @Nullable String[] researchers) throws SQLException, IOException {
180
    public boolean updatePublish(@JdbcConn(true) Connection con, ResearchResult researchResult, @Nullable String[] researchers) throws SQLException, IOException {
186 181
        researchResult.setStatus("1");
187 182
        return update(con, researchResult, researchers);
188 183
    }