EmsProdplanRoundController.java 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. package com.steerinfo.ems.emsprodplanround.controller;
  2. import com.steerinfo.auth.utils.JwtUtil;
  3. import com.steerinfo.ems.emsgmpcjh.mapper.EmsGmPcJhMapper;
  4. import com.steerinfo.ems.emsgmpcjh.model.EmsGmPcJh;
  5. import com.steerinfo.ems.emslog.enums.BusinessType;
  6. import com.steerinfo.ems.emslog.service.IEmsLogService;
  7. import com.steerinfo.ems.emsprodplanmonth.service.IEmsProdplanMonthService;
  8. import com.steerinfo.ems.emsprodplanround.mapper.EmsProdplanRoundMapper;
  9. import com.steerinfo.ems.emsprodplanround.model.EmsProdplanRound;
  10. import com.steerinfo.ems.emsprodplanround.service.IEmsProdplanRoundService;
  11. import com.steerinfo.framework.controller.BaseRESTfulController;
  12. import com.steerinfo.framework.controller.RESTfulResult;
  13. import com.steerinfo.framework.service.pagehelper.PageList;
  14. import com.steerinfo.framework.utils.collection.ListUtils;
  15. import com.steerinfo.framework.utils.misc.IdGenerator;
  16. import io.swagger.annotations.ApiImplicitParam;
  17. import io.swagger.annotations.ApiImplicitParams;
  18. import io.swagger.annotations.ApiOperation;
  19. import org.springframework.beans.factory.annotation.Autowired;
  20. import org.springframework.transaction.annotation.Transactional;
  21. import org.springframework.web.bind.annotation.*;
  22. import java.util.*;
  23. import java.util.stream.Collectors;
  24. /**
  25. * EmsProdplanRound RESTful接口:
  26. * @author generator
  27. * @version 1.0-SNAPSHORT 2021-07-06 03:43
  28. * 类描述
  29. * 修订历史:
  30. * 日期:2021-07-06
  31. * 作者:generator
  32. * 参考:
  33. * 描述:EmsProdplanRound RESTful接口
  34. * @see null
  35. * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
  36. */
  37. @RestController
  38. @RequestMapping("/${api.version}/emsprodplanrounds")
  39. public class EmsProdplanRoundController extends BaseRESTfulController {
  40. public static String page = "轮次计划页面";
  41. public static String table = "EMS_PRODPLAN_ROUND";
  42. @Autowired
  43. IEmsProdplanRoundService emsProdplanRoundService;
  44. @Autowired
  45. EmsGmPcJhMapper emsGmPcJhMapper;
  46. @Autowired
  47. EmsProdplanRoundMapper emsProdplanRoundMapper;
  48. @Autowired
  49. IEmsProdplanMonthService emsProdplanMonthService;
  50. @Autowired
  51. IEmsLogService emsLogService;
  52. @Autowired
  53. IdGenerator idGenerator;
  54. @ApiOperation(value="获取列表", notes="分页查询")
  55. @ApiImplicitParams({
  56. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  57. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
  58. })
  59. //@RequiresPermissions("emsprodplanround:view")
  60. @GetMapping(value = "/")
  61. public RESTfulResult list(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
  62. PageList<EmsProdplanRound> list = emsProdplanRoundService.queryForPage(parmas, pageNum, pageSize);
  63. return success(list);
  64. }
  65. @ApiOperation(value="获取列表", notes="分页模糊查询")
  66. @ApiImplicitParams({
  67. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  68. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
  69. })
  70. //@RequiresPermissions("emsprodplanround:view")
  71. @GetMapping(value = "/like/")
  72. public RESTfulResult listLike(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
  73. PageList<EmsProdplanRound> list = emsProdplanRoundService.queryLikeForPage(parmas, pageNum, pageSize);
  74. return success(list);
  75. }
  76. @ApiOperation(value="创建", notes="根据EmsProdplanRound对象创建")
  77. @ApiImplicitParam(name = "emsProdplanRound", value = "详细实体emsProdplanRound", required = true, dataType = "EmsProdplanRound")
  78. @PostMapping(value = "/")
  79. public RESTfulResult add(@RequestBody EmsProdplanRound [] models){
  80. String userId = JwtUtil.getUseridByToken();
  81. String maxid = null;
  82. for (EmsProdplanRound model : models) {
  83. if (model.getParentid() == null ){
  84. return failed(null,"请点击选择左边计划!!!");
  85. }
  86. EmsGmPcJh emsGmPcJh = emsGmPcJhMapper.selectByPrimaryKey(model.getParentid());
  87. if(emsGmPcJh.getState().equals("0")){
  88. return failed(null,"排产计划编号为"+emsGmPcJh.getId()+"做了取消下发操作,无法做新增操作");
  89. }
  90. if(model.getWorkprocType() == null || model.getWorkprocType().equals("")){
  91. return failed(null,"工序或者时间为空");
  92. }
  93. if (model.getParentid().substring(0,1).equals("G")){
  94. maxid = emsProdplanRoundService.getMaxidAsGm(model);
  95. model.setAscription("0");
  96. }
  97. else {
  98. maxid = emsProdplanRoundService.getMaxidAsSC(model);
  99. model.setAscription("1");
  100. }
  101. model.setId(maxid);
  102. model.setPlanWeight(model.getPlanWeight());
  103. model.setMsgFlag("I");
  104. model.setReadFlag("N");
  105. model.setState("0");
  106. model.setCreatetime(new Date());
  107. model.setCreateman(userId);
  108. model.setWorkprocType(model.getWorkprocType());
  109. emsProdplanRoundService.add(model);
  110. emsGmPcJh.setState("3");
  111. emsGmPcJh.setReceiveTime(new Date());
  112. emsGmPcJhMapper.updateByPrimaryKeySelective(emsGmPcJh);
  113. }
  114. return success();
  115. }
  116. // @PutMapping(value = "/batchupdate", produces = "application/json;charset=UTF-8")
  117. // public RESTfulResult batchupdate(@RequestBody EmsProdplanRound [] models ){
  118. // String userId = JwtUtil.getUseridByToken();
  119. // for (int i = 0; i < models.length; i++) {
  120. // EmsProdplanRound model = models[i];
  121. // HashMap<String,Object> map = new HashMap();
  122. // String strDateFormat = "yyyy-MM";
  123. // SimpleDateFormat sdf = new SimpleDateFormat(strDateFormat);
  124. // map.put("id",model.getParentid());
  125. // map.put("may",sdf.format(model.getMay()));
  126. // EmsProdplanMonth emsProdplanMonth = emsProdplanMonthMapper.getBymayAndWorkprocid(map);
  127. // Long weightMonth = emsProdplanMonth.getWeightMonth();
  128. // Long kxf_weight = emsProdplanMonth.getKxf_weight();
  129. // Long yxf_weight = emsProdplanMonth.getYxf_weight();
  130. // yxf_weight = model.getPlanWeight()+yxf_weight;
  131. // kxf_weight = weightMonth-yxf_weight;
  132. // if(yxf_weight>weightMonth){
  133. // return failed(null,"可下发重量不足");
  134. // }
  135. // emsProdplanMonth.setKxf_weight(kxf_weight);
  136. // emsProdplanMonth.setYxf_weight(yxf_weight);
  137. // emsProdplanMonthMapper.updateByPrimaryKey(emsProdplanMonth);
  138. // emsProdplanRoundMapper.updateByPrimaryKey(model);
  139. // }
  140. // return success();
  141. // }
  142. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  143. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
  144. //@RequiresPermissions("emsprodplanround:view")
  145. @GetMapping(value = "/{id}")
  146. public RESTfulResult get(@PathVariable String id){
  147. EmsProdplanRound emsProdplanRound = emsProdplanRoundService.getById(id);
  148. return success(emsProdplanRound);
  149. }
  150. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的emsProdplanRound信息来更新详细信息")
  151. @ApiImplicitParams({
  152. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String"),
  153. @ApiImplicitParam(name = "emsProdplanRound", value = "详细实体emsProdplanRound", required = true, dataType = "EmsProdplanRound")
  154. })
  155. //@RequiresPermissions("emsprodplanround:update")
  156. @PutMapping(value = "batchUpdate", produces = "application/json;charset=UTF-8")
  157. public RESTfulResult update(@RequestBody EmsProdplanRound[] models){
  158. String userId = JwtUtil.getUseridByToken();
  159. for (int i = 0; i < models.length; i++) {
  160. EmsProdplanRound model = models[i];
  161. if(model.getState().equals("1") || model.getState().equals("2")){
  162. return failed(null,"存在已经下发或者审核的计划,无法做修改");
  163. }
  164. EmsProdplanRound emsProdplanRound = emsProdplanRoundMapper.selectByPrimaryKey(model.getId());
  165. model.setUpdateman(userId);
  166. model.setUpdatetime(new Date());
  167. emsProdplanRoundMapper.updateByPrimaryKey(model);
  168. emsLogService.insertlog(emsProdplanRoundService.tostr(emsProdplanRound,model),page,table,BusinessType.UPDATE.toString());
  169. }
  170. return success();
  171. }
  172. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的emsProdplanRound信息来更新详细信息")
  173. @ApiImplicitParams({
  174. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String"),
  175. @ApiImplicitParam(name = "emsProdplanRound", value = "详细实体emsProdplanRound", required = true, dataType = "EmsProdplanRound")
  176. })
  177. //@RequiresPermissions("emsprodplanround:update")
  178. @PutMapping(value = "ForcedUpdate", produces = "application/json;charset=UTF-8")
  179. public RESTfulResult ForcedUpdate(@RequestBody EmsProdplanRound[] models) {
  180. String userId = JwtUtil.getUseridByToken();
  181. for (int i = 0; i < models.length; i++) {
  182. EmsProdplanRound model = models[i];
  183. EmsProdplanRound emsProdplanRound = emsProdplanRoundMapper.selectByPrimaryKey(model.getId());
  184. model.setUpdateman(userId);
  185. model.setUpdatetime(new Date());
  186. emsProdplanRoundMapper.updateByPrimaryKey(model);
  187. emsLogService.insertlog(emsProdplanRoundService.tostr(emsProdplanRound,model),page,table,BusinessType.UPDATE.toString());
  188. }
  189. return success();
  190. }
  191. @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
  192. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
  193. //@RequiresPermissions("emsprodplanround:delete")
  194. @DeleteMapping(value = "/{id}")
  195. public RESTfulResult delete(@PathVariable String id ,@RequestBody EmsProdplanRound[] models){
  196. List<String> list = Arrays.asList(id.split(","));
  197. if(ListUtils.isNotEmpty(list)) {
  198. List<String> ids = ListUtils.convertList(list);
  199. emsProdplanRoundService.delete(ids);
  200. }
  201. return success();
  202. }
  203. @ApiOperation(value="下发", notes="根据models修改对象")
  204. @ApiImplicitParam(name = "emsProdplanRounds", value = "", required = true, dataType = "EmsProdplanRounds")
  205. @PostMapping(value = "/issue")
  206. @Transactional
  207. public RESTfulResult issue(@RequestBody EmsProdplanRound [] models){
  208. List id = new ArrayList();
  209. String monthid = "";
  210. for (int i = 0; i < models.length; i++) {
  211. EmsProdplanRound model = models[i];
  212. id.add(model.getId());
  213. monthid = model.getParentid();
  214. model.setIssuedTime(new Date());
  215. if(model.getState().equals("1") || model.getState().equals("2")){
  216. return failed(null,"存在已下发的计划,无法再次做下发");
  217. } else if (model.getState().equals("3")) {
  218. return failed(null,"存在审核不通过的计划, 无法下发");
  219. } else {
  220. model.setState("1");
  221. //emsProdplanRoundMapper.updateByPrimaryKey(model);
  222. emsProdplanRoundMapper.updateByPrimaryKeySelective(model);
  223. EmsProdplanRound sumPlanWeight = emsProdplanRoundService.getSumPlanWeight(model.getId());
  224. EmsGmPcJh emsGmPcJh = emsGmPcJhMapper.selectByPrimaryKey(monthid);
  225. emsGmPcJh.setKxfWeight(emsGmPcJh.getPlanWeight().subtract(emsGmPcJh.getYxfWeight().add(sumPlanWeight.getPlanWeight())));
  226. emsGmPcJh.setYxfWeight(emsGmPcJh.getYxfWeight().add(sumPlanWeight.getPlanWeight()));
  227. emsGmPcJhMapper.updateByPrimaryKey(emsGmPcJh);
  228. }
  229. }
  230. return success();
  231. }
  232. @ApiOperation(value="取消下发", notes="根据models修改对象")
  233. @ApiImplicitParam(name = "emsProdplanRounds", value = "", required = true, dataType = "EmsProdplanRounds")
  234. @PostMapping(value = "/offissue")
  235. @Transactional
  236. public RESTfulResult offissue(@RequestBody EmsProdplanRound [] models){
  237. List id = new ArrayList();
  238. String monthid = "";
  239. String state ="";
  240. for (int i = 0; i < models.length; i++) {
  241. EmsProdplanRound model = models[i];
  242. id.add(model.getId());
  243. monthid = model.getParentid();
  244. model.setIssuedTime(new Date());
  245. if(model.getState().equals("0")){
  246. return failed(null,"没有下发过的轮次计划无法做取消下发操作");
  247. }
  248. EmsProdplanRound emsProdplanRound = emsProdplanRoundMapper.selectByPrimaryKey(model.getId());
  249. if(emsProdplanRound.getState().equals("2")){
  250. return failed(null,"存在已经接收的计划,无法做取消下发操作,请重新刷新页面");
  251. }
  252. model.setState("0");
  253. //emsProdplanRoundMapper.updateByPrimaryKey(model);
  254. emsProdplanRoundMapper.updateByPrimaryKeySelective(model);
  255. EmsProdplanRound sumPlanWeight = emsProdplanRoundService.getSumPlanWeight(model.getId());
  256. EmsGmPcJh emsGmPcJh = emsGmPcJhMapper.selectByPrimaryKey(monthid);
  257. // 取消下发操作
  258. emsGmPcJh.setKxfWeight(emsGmPcJh.getKxfWeight().add(sumPlanWeight.getPlanWeight()));
  259. emsGmPcJh.setYxfWeight(emsGmPcJh.getYxfWeight().subtract(sumPlanWeight.getPlanWeight()));
  260. emsGmPcJhMapper.updateByPrimaryKey(emsGmPcJh);
  261. }
  262. return success();
  263. }
  264. @ApiImplicitParam(name = "emsProdplanRounds", value = "", required = true, dataType = "EmsProdplanRounds")
  265. @PostMapping(value = "/delete")
  266. public RESTfulResult delete(@RequestBody EmsProdplanRound [] models){
  267. for (int i = 0; i < models.length; i++) {
  268. EmsProdplanRound model = models[i];
  269. if (model.getState().equals("1") || model.getState().equals("2")) {
  270. return failed(null, "数据已下发或者被接收,无法删除");
  271. }
  272. EmsProdplanRound emsProdplanRound = emsProdplanRoundMapper.selectByPrimaryKey(model.getId());
  273. emsProdplanRoundMapper.deleteByPrimaryKey(model.getId());
  274. updateNbjh(model);
  275. emsLogService.insertlog(emsProdplanRoundService.tostr(emsProdplanRound,null),page,table,BusinessType.DELETE.toString());
  276. }
  277. return success();
  278. }
  279. @ApiOperation(value="获取详细信息", notes="根据url获取长度*宽度")
  280. @GetMapping(value = "getbasespecbillet")
  281. public RESTfulResult getlengthTimesWidth(){
  282. List<EmsProdplanRound> emsProdplanRounds = emsProdplanRoundService.getbasespecbillet();
  283. return success(emsProdplanRounds);
  284. }
  285. @ApiOperation(value="获取详细信息", notes="根据url获取断面")
  286. @GetMapping(value = "getiateralArea")
  287. public RESTfulResult getiateralArea(){
  288. List<EmsProdplanRound> emsProdplanRounds = emsProdplanRoundService.getiateralArea();
  289. return success(emsProdplanRounds);
  290. }
  291. @ApiOperation(value="获取详细信息", notes="根据url获取截取面积")
  292. @GetMapping(value = "getdimension")
  293. public RESTfulResult getdimension(){
  294. List<EmsProdplanRound> emsProdplanRounds = emsProdplanRoundService.getdimension();
  295. return success(emsProdplanRounds);
  296. }
  297. @ApiOperation(value="获取详细信息", notes="根据url获取断面")
  298. @GetMapping(value = "getsurfaceStandard")
  299. public RESTfulResult getsurfaceStandard(){
  300. List<EmsProdplanRound> emsProdplanRounds = emsProdplanRoundService.getsurfaceStandard();
  301. return success(emsProdplanRounds);
  302. }
  303. public void updateNbjh(EmsProdplanRound emsProdplanRound) {
  304. if (emsProdplanRound.getParentid() != null || !emsProdplanRound.getParentid().equals("")) {
  305. Map<String,Object> map = new HashMap();
  306. map.put("parentid",emsProdplanRound.getParentid());
  307. List list = emsProdplanRoundMapper.selectByParameters(map);
  308. if (list.size()<1) {
  309. EmsGmPcJh emsGmPcJh = emsGmPcJhMapper.selectByPrimaryKey(emsProdplanRound.getParentid());
  310. emsGmPcJh.setState("2");
  311. emsGmPcJhMapper.updateByPrimaryKeySelective(emsGmPcJh);
  312. }
  313. }
  314. }
  315. @ApiOperation(value="获取列表", notes="审核页面分页查询")
  316. @ApiImplicitParams({
  317. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  318. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
  319. })
  320. //@RequiresPermissions("emsprodplanround:view")
  321. @GetMapping(value = "/getAuditDate")
  322. //获取未审核的数据
  323. public RESTfulResult getAuditDateForPage (@RequestParam HashMap parmas,Integer pageNum, Integer pageSize) {
  324. PageList list = emsProdplanRoundService.getAuditDateForPage(parmas, pageNum, pageSize);
  325. return success(list);
  326. }
  327. @ApiOperation(value="获取列表", notes="审核页面修改")
  328. @PutMapping(value = "updateAuditState", produces = "application/json;charset=UTF-8")
  329. public RESTfulResult updateAuditState(@RequestBody EmsProdplanRound[] models){
  330. for (int i = 0; i < models.length; i++) {
  331. EmsProdplanRound model = models[i];
  332. if(model.getState().equals("2")){
  333. return failed(null,"操作失败,存在已经下发或者接收的计划");
  334. }
  335. EmsProdplanRound emsProdplanRound = emsProdplanRoundMapper.selectByPrimaryKey(model.getId());
  336. if (emsProdplanRound.getAuditState().equals("1")){
  337. return failed(null,"编号为"+model.getId()+"已经再审核中,请勿重复操作");
  338. }
  339. if (emsProdplanRound.getAuditState().equals("2")){
  340. return failed(null,"编号为"+model.getId()+"已经审核通过,请勿重复操作");
  341. }
  342. if(emsProdplanRound.getAuditState().equals("3")){
  343. return failed(null,"编号为"+model.getId()+"审核失败,请勿重复操作");
  344. }
  345. model.setAuditState("1");
  346. emsProdplanRoundService.updateAuditState(model);
  347. }
  348. return success();
  349. }
  350. @ApiOperation(value="修改列表", notes="审核页面修改")
  351. @PutMapping(value = "updateAudit", produces = "application/json;charset=UTF-8")
  352. public RESTfulResult updateAudit(@RequestBody EmsProdplanRound[] models){
  353. for (EmsProdplanRound model : models) {
  354. if (model.getState().equals("2")) {
  355. return failed("操作失败,编号为"+model.getId()+"已经接收");
  356. }
  357. emsProdplanRoundService.updateAuditState(model);
  358. }
  359. return success();
  360. }
  361. @ApiOperation(value="获取子节点", notes="销售订单重量调整")
  362. @GetMapping(value = "/getRounds")
  363. public RESTfulResult getRounds(@RequestParam HashMap parmas){
  364. EmsProdplanRound emsProdplanRound = new EmsProdplanRound();
  365. emsProdplanRound.setParentid(parmas.get("parentid").toString());
  366. List<EmsProdplanRound> rounds = emsProdplanRoundService.getRounds(emsProdplanRound);
  367. Map<String,List<EmsProdplanRound>> stringListMap =
  368. (HashMap<String, List<EmsProdplanRound>>) rounds.stream().collect(
  369. Collectors.groupingBy(EmsProdplanRound::getParentid)
  370. );
  371. List mapList = new ArrayList<>();
  372. //数据,进行组装
  373. mapList.add(stringListMap);
  374. return success(mapList);
  375. }
  376. @PutMapping(value = "/addSave", produces = "application/json;charset=UTF-8")
  377. public RESTfulResult addSave(@RequestBody EmsProdplanRound model){
  378. if (model.getId() != null ) {
  379. EmsProdplanRound emsProdplanRound = emsProdplanRoundMapper.selectByPrimaryKey(model.getId());
  380. emsProdplanRound.setPlanWeight(model.getPlanWeight());
  381. emsProdplanRoundMapper.updateByPrimaryKey(emsProdplanRound);
  382. return success();
  383. }
  384. return failed();
  385. }
  386. @GetMapping("getstdchem")
  387. public RESTfulResult getstdchem(){
  388. List<EmsProdplanRound> emsProdplanRounds = emsProdplanRoundService.getchemicalStandard();
  389. return success(emsProdplanRounds);
  390. }
  391. @ApiOperation(value="获取列表", notes="展开查询")
  392. @ApiImplicitParams({
  393. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  394. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
  395. })
  396. //@RequiresPermissions("emsprodplanround:view")
  397. @GetMapping(value = "/getTableDetailAsRadio")
  398. public RESTfulResult getTableDetailAsRadio (@RequestParam HashMap<String, Object> parmas,Integer pageNum, Integer pageSize){
  399. if(parmas.get("id") != null && !parmas.get("id").toString().isEmpty()){
  400. String id = parmas.get("id").toString();
  401. if(!id.startsWith("'")){
  402. id = "'" + id.replaceAll(",", "','").replaceAll(",", "','") + "'";
  403. }
  404. parmas.put("id", id);
  405. }
  406. PageList pageList = emsProdplanRoundService.getTableDetailAsRadioForPage(parmas, pageNum, pageSize);
  407. return success(pageList);
  408. }
  409. @ApiOperation(value="获取最后一次下发的数据", notes="生成轮次描述")
  410. @GetMapping(value = "/getLastIssuedData")
  411. public RESTfulResult getLastIssuedData (@RequestParam HashMap<String, Object> parmas){
  412. return success(emsProdplanRoundService.getLastIssuedData(parmas));
  413. }
  414. }