@AutoLog ( value = "通过学号更新学生荣誉状态" )
@ApiOperation ( value= "通过学号更新学生荣誉状态" , notes= "通过学号更新学生荣誉状态" )
@GetMapping ( value = "/getStudentHonorBy" )
public Result< ? > getStudentHonorBy ( @RequestParam ( required = true ) String stuId, String review,
HttpServletRequest req) {
List< StHonor> stStateJilu = stHonorService. getStudentHonorBy ( stuId, review) ;
Result result= new Result ( ) ;
result. setResult ( stStateJilu) ;
return result;
}
List< StHonor> getStudentHonorBy ( String stuId, String review) ;
@Override
public List< StHonor> getStudentHonorBy ( String stuId, String review) {
List< StHonor> StudentHonor= stHonorMapper. getStudentHonorBy ( stuId, review) ;
return StudentHonor;
}
List< StHonor> getStudentHonorBy ( @Param ( "stuId" ) String stuId, @Param ( "review" ) String review) ;
< select id= "getStudentHonorBy" resultType= "org.jeecg.modules.demo.st.entity.StHonor" >
UPDATE
st_honor SET review= #{ review}
WHERE
st_name= #{ stuId}
< / select>