From 4b86cf6bbe5a7204a801169398fa836e8e06c109 Mon Sep 17 00:00:00 2001 From: guoshilong <123456> Date: Wed, 14 Dec 2022 17:04:36 +0800 Subject: [PATCH] Merge remote-tracking branch 'refs/remotes/origin/master' --- src/main/java/org/springblade/modules/application/mapper/GoodsMapper.xml | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/src/main/java/org/springblade/modules/application/mapper/GoodsMapper.xml b/src/main/java/org/springblade/modules/application/mapper/GoodsMapper.xml new file mode 100644 index 0000000..87db114 --- /dev/null +++ b/src/main/java/org/springblade/modules/application/mapper/GoodsMapper.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="org.springblade.modules.application.mapper.GoodsMapper"> + + <!-- 通用查询映射结果 --> + <resultMap id="goodsResultMap" type="org.springblade.modules.application.entity.GoodsEntity"> + <result column="id" property="id"/> + <result column="name" property="name"/> + <result column="axial_load" property="axialLoad"/> + <result column="weight" property="weight"/> + <result column="all_weight" property="allWeight"/> + <result column="length" property="length"/> + <result column="width" property="width"/> + <result column="height" property="height"/> + <result column="all_length" property="allLength"/> + <result column="all_width" property="allWidth"/> + <result column="all_height" property="allHeight"/> + <result column="remark" property="remark"/> + </resultMap> + + + <select id="selectGoodsPage" resultMap="goodsResultMap"> + select * from sys_application_goods where is_deleted = 0 + </select> + + +</mapper> -- Gitblit v1.9.3