add - 发泡看板添加编号区分南北线

master
wenjy 2 years ago
parent 7b6cb34643
commit 53c14d8ee2

@ -8,8 +8,10 @@ import com.productionboard.entity.MesProduction.MesTeamStatistics;
import com.productionboard.service.IMesProductionDataService; import com.productionboard.service.IMesProductionDataService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList; import java.util.ArrayList;
@ -29,9 +31,27 @@ public class FoamBoxController {
private String prefix = "foamBox/index"; private String prefix = "foamBox/index";
/**
* id:0-线1-线
* @author WenJY
* @date 2022-06-10 13:57
* @param id
* @param mmap
* @return java.lang.String
*/
@GetMapping() @GetMapping()
public String index() public String index(@RequestParam("id") int id,ModelMap mmap)
{ {
switch (id) {
case 0:
mmap.put("positionId",0);
break;
case 1:
mmap.put("positionId",1);
break;
default:
break;
}
return prefix; return prefix;
} }

Loading…
Cancel
Save