手持机部分
This commit is contained in:
@@ -5,6 +5,7 @@ import java.util.Collections;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import com.ruoyi.common.annotation.DataScope;
|
||||||
import com.ruoyi.common.core.domain.AjaxResult;
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
import com.ruoyi.in.stockindetail.domain.InStockinDetail;
|
import com.ruoyi.in.stockindetail.domain.InStockinDetail;
|
||||||
import com.ruoyi.in.stockindetail.service.IInStockinDetailService;
|
import com.ruoyi.in.stockindetail.service.IInStockinDetailService;
|
||||||
@@ -49,6 +50,7 @@ public class InStockinServiceImpl implements IInStockinService
|
|||||||
* @return 入库单据
|
* @return 入库单据
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@DataScope(warehouseAlias = "is2")
|
||||||
public List<InStockin> selectInStockinList(InStockin inStockin)
|
public List<InStockin> selectInStockinList(InStockin inStockin)
|
||||||
{
|
{
|
||||||
return inStockinMapper.selectInStockinList(inStockin);
|
return inStockinMapper.selectInStockinList(inStockin);
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ public class PdaController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 绑定托盘物料
|
* 绑定托盘物料
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasAnyPermi('bas:warehouse:list')")
|
@PreAuthorize("@ss.hasPermi('pda:bindTrayMsg:submit')")
|
||||||
@RequestMapping("/bindTrayMsg")
|
@RequestMapping("/bindTrayMsg")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult bindTrayMsg(@RequestBody TrayCodeMsg trayCodeMsg) {
|
public AjaxResult bindTrayMsg(@RequestBody TrayCodeMsg trayCodeMsg) {
|
||||||
@@ -146,6 +146,7 @@ public class PdaController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 查询托盘已绑定物料
|
* 查询托盘已绑定物料
|
||||||
*/
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('pda:bindMsg:list')")
|
||||||
@RequestMapping("/bindMsg")
|
@RequestMapping("/bindMsg")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult bindMsg(String trayCode) {
|
public AjaxResult bindMsg(String trayCode) {
|
||||||
|
|||||||
@@ -22,8 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectBasWarehouseList" parameterType="BasWarehouse" resultMap="BasWarehouseResult">
|
<select id="selectBasWarehouseList" parameterType="BasWarehouse" resultMap="BasWarehouseResult">
|
||||||
<include refid="selectBasWarehouseVo"/>
|
<include refid="selectBasWarehouseVo"/>
|
||||||
where
|
<where>
|
||||||
1=1
|
|
||||||
<if test="warehouseId != null and warehouseId != ''">and warehouse_id = #{warehouseId}</if>
|
<if test="warehouseId != null and warehouseId != ''">and warehouse_id = #{warehouseId}</if>
|
||||||
<if test="warehouseNo != null and warehouseNo != ''">and warehouse_no = #{warehouseNo}</if>
|
<if test="warehouseNo != null and warehouseNo != ''">and warehouse_no = #{warehouseNo}</if>
|
||||||
<if test="projectNo != null and projectNo != ''">and project_no = #{projectNo}</if>
|
<if test="projectNo != null and projectNo != ''">and project_no = #{projectNo}</if>
|
||||||
@@ -47,7 +46,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
${params.warehouseDataScope}
|
<if test="params.warehouseDataScope != null and params.warehouseDataScope !=''">
|
||||||
|
${params.warehouseDataScope}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectBasWarehouseByWarehouseId" parameterType="String" resultMap="BasWarehouseResult">
|
<select id="selectBasWarehouseByWarehouseId" parameterType="String" resultMap="BasWarehouseResult">
|
||||||
|
|||||||
@@ -95,6 +95,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where lot_no like concat('%',#{lotNo},'%')
|
where lot_no like concat('%',#{lotNo},'%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
<if test="params.warehouseDataScope != null and params.warehouseDataScope !=''">
|
||||||
|
${params.warehouseDataScope}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user