1、召开冲刺会议
2、会议内容:讨论增加排名管理功能及任务分配
任务分配:宋非队长:201810812006 定义接口以及实现方式
罗建彪队员:201810812005 代码实现
罗远云队员:201810775002 排名规则设定。
3、燃尽图
4、遇到的问题:我们需要所有评委做出做出评分后,此时就系统就需要做出相应的排名,但在数据传输上存在一定问题
5、代码记录
https://git.coding.net/Ssl_dhlg18/SIMsystem.git
6、代码实现
package com.ms.action; import java.util.ArrayList; import java.util.List; import org.apache.struts2.ServletActionContext; import org.apache.struts2.convention.annotation.Action; import org.apache.struts2.convention.annotation.Result; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import com.ms.dao.ActivitylistInterface; import com.ms.dao.ItemFormInterface; import com.ms.model.Itemform; import com.ms.model.Judgescoring; import com.ms.service.scoreServiceI; import com.opensymphony.xwork2.ModelDriven; /** * @Description : 操作分数的Action实现 * @author LLS * */ @SuppressWarnings("serial") public class ScoreAction extends BaseAction implements ModelDriven<Judgescoring>{ @Autowired @Qualifier("itemDao") private ItemFormInterface itemDao; @Autowired @Qualifier("scoreService") private scoreServiceI scoreService; @Autowired @Qualifier("activityDao") private ActivitylistInterface activityDao; private Judgescoring score = new Judgescoring(); private List<Judgescoring> list_score= new ArrayList<Judgescoring>(); /** * @Description : 通过项目Id获取评委评分 * @author LLS * */ @Action(value = "getJudgeScoreById" , results = {@Result(name = "success", type = "json",params = {"root","jsoMap"})}) public String getJudgeScoreById(){ String item_id=ServletActionContext.getRequest().getParameter("itemId"); jsoMap = scoreService.getJudgeScoreById(Integer.parseInt(item_id)); return "success"; }