触控屏端生产
This commit is contained in:
parent
43e633dfc4
commit
f1ceb86a50
@ -0,0 +1,43 @@
|
|||||||
|
package com.ktg.mes.pro.controller;
|
||||||
|
|
||||||
|
import com.ktg.common.core.controller.BaseController;
|
||||||
|
import com.ktg.common.core.domain.AjaxResult;
|
||||||
|
import com.ktg.mes.pro.domain.ProTask;
|
||||||
|
import com.ktg.mes.pro.service.IProTaskService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/mobile/pro/protask")
|
||||||
|
public class ProTaskMobController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IProTaskService proTaskService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询工作站的生产任务
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('mes:pro:protask:list')")
|
||||||
|
@GetMapping("/getTaskList")
|
||||||
|
public AjaxResult list(ProTask proTask)
|
||||||
|
{
|
||||||
|
List<ProTask> list = proTaskService.selectProTaskList(proTask);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取生产任务详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('mes:pro:protask:query')")
|
||||||
|
@GetMapping(value = "/{taskId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("taskId") Long taskId)
|
||||||
|
{
|
||||||
|
return AjaxResult.success(proTaskService.selectProTaskByTaskId(taskId));
|
||||||
|
}
|
||||||
|
}
|
@ -80,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="endTime != null "> and end_time = #{endTime}</if>
|
<if test="endTime != null "> and end_time = #{endTime}</if>
|
||||||
<if test="colorCode != null and colorCode != ''"> and color_code = #{colorCode}</if>
|
<if test="colorCode != null and colorCode != ''"> and color_code = #{colorCode}</if>
|
||||||
<if test="requestDate != null "> and request_date = #{requestDate}</if>
|
<if test="requestDate != null "> and request_date = #{requestDate}</if>
|
||||||
|
order by request_date asc
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user