|
@@ -42,7 +42,7 @@ public class CooperationsServiceImpl extends ServiceImpl<CooperationsMapper, Coo
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
httpRespMsg.data = map;
|
|
httpRespMsg.data = map;
|
|
return httpRespMsg;
|
|
return httpRespMsg;
|
|
- };
|
|
|
|
|
|
+ }
|
|
|
|
|
|
public HttpRespMsg addCooperations(Cooperations cooperations, MultipartFile multipartFile){
|
|
public HttpRespMsg addCooperations(Cooperations cooperations, MultipartFile multipartFile){
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
@@ -65,7 +65,7 @@ public class CooperationsServiceImpl extends ServiceImpl<CooperationsMapper, Coo
|
|
httpRespMsg.setError("lack of file or information");
|
|
httpRespMsg.setError("lack of file or information");
|
|
}
|
|
}
|
|
return httpRespMsg;
|
|
return httpRespMsg;
|
|
- };
|
|
|
|
|
|
+ }
|
|
|
|
|
|
public HttpRespMsg editCooperations(Cooperations cooperations, MultipartFile multipartFile){
|
|
public HttpRespMsg editCooperations(Cooperations cooperations, MultipartFile multipartFile){
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
@@ -90,14 +90,17 @@ public class CooperationsServiceImpl extends ServiceImpl<CooperationsMapper, Coo
|
|
httpRespMsg.setError("lack of information");
|
|
httpRespMsg.setError("lack of information");
|
|
}
|
|
}
|
|
return httpRespMsg;
|
|
return httpRespMsg;
|
|
- };
|
|
|
|
|
|
+ }
|
|
|
|
|
|
public HttpRespMsg deleteCooperationsById(Integer id){
|
|
public HttpRespMsg deleteCooperationsById(Integer id){
|
|
cooperationsMapper.deleteById(id);
|
|
cooperationsMapper.deleteById(id);
|
|
return new HttpRespMsg();
|
|
return new HttpRespMsg();
|
|
- };
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- public HttpRespMsg editCooperations(){
|
|
|
|
- return null;
|
|
|
|
- };
|
|
|
|
|
|
+ public HttpRespMsg switchCooperationSticky(Integer id){
|
|
|
|
+ Cooperations cooperations = cooperationsMapper.selectById(id);
|
|
|
|
+ cooperations.setSticky(cooperations.getSticky() == 0? 1: 0);
|
|
|
|
+ cooperationsMapper.updateById(cooperations);
|
|
|
|
+ return new HttpRespMsg();
|
|
|
|
+ }
|
|
}
|
|
}
|