新购绑定查询二维码接口
This commit is contained in:
parent
2b95ca3d80
commit
9311d8c0e9
|
|
@ -94,4 +94,15 @@ public class PurchaseBindController extends BaseController {
|
||||||
ExcelUtil<PurchaseVo> util = new ExcelUtil<PurchaseVo>(PurchaseVo.class);
|
ExcelUtil<PurchaseVo> util = new ExcelUtil<PurchaseVo>(PurchaseVo.class);
|
||||||
util.exportExcel(response, list, "新购验收绑定任务数据");
|
util.exportExcel(response, list, "新购验收绑定任务数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取新购验收绑定详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取新购验收绑定详细信息")
|
||||||
|
// @RequiresPermissions("purchase:bind:qrcode")
|
||||||
|
@GetMapping(value = "/getTypeByQrcode")
|
||||||
|
public AjaxResult getTypeByQrcode(PurchaseDto dto) {
|
||||||
|
return purchaseBindService.getTypeByQrcode(dto);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -98,4 +98,6 @@ public interface PurchaseBindMapper {
|
||||||
List<PurchaseVo> getDetailById(PurchaseDto purchaseDto);
|
List<PurchaseVo> getDetailById(PurchaseDto purchaseDto);
|
||||||
|
|
||||||
List<PurchaseCheckDetails> getMachineById(PurchaseDto dto);
|
List<PurchaseCheckDetails> getMachineById(PurchaseDto dto);
|
||||||
|
|
||||||
|
List<PurchaseVo> getTypeByQrcode(PurchaseDto dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,4 +55,5 @@ public interface IPurchaseBindService {
|
||||||
*/
|
*/
|
||||||
AjaxResult reject(PurchaseDto dto);
|
AjaxResult reject(PurchaseDto dto);
|
||||||
|
|
||||||
|
AjaxResult getTypeByQrcode(PurchaseDto dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -438,4 +438,18 @@ public class PurchaseBindServiceImpl implements IPurchaseBindService {
|
||||||
}
|
}
|
||||||
zos.closeEntry();
|
zos.closeEntry();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询二维码绑定信息
|
||||||
|
* @param dto
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AjaxResult getTypeByQrcode(PurchaseDto dto) {
|
||||||
|
|
||||||
|
List<PurchaseVo> list = purchaseBindMapper.getTypeByQrcode(dto);
|
||||||
|
//extracted(list);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -328,4 +328,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND pmi.ma_code IS NOT NULL
|
AND pmi.ma_code IS NOT NULL
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
<select id="getTypeByQrcode" resultType="com.bonus.material.purchase.domain.vo.PurchaseVo">
|
||||||
|
SELECT
|
||||||
|
bqi.qr_code as qrCode,
|
||||||
|
bqi.type_id as typeId
|
||||||
|
FROM
|
||||||
|
bm_qrcode_info bqi
|
||||||
|
WHERE
|
||||||
|
qr_code = #{qrCode}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue