- 添加一个搜索功能呢
This commit is contained in:
@@ -57,4 +57,12 @@ public interface OrderReturnMapper {
|
||||
* @return
|
||||
*/
|
||||
List<OrderReturnDO> selectList(OrderReturnQueryDTO queryDTO);
|
||||
|
||||
/**
|
||||
* 查询 - 根据 id 查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
OrderReturnDO selectById(Integer id);
|
||||
}
|
||||
|
||||
@@ -140,4 +140,13 @@ public class OrderReturnServiceImpl implements OrderReturnService {
|
||||
.setTotalCount(totalCount)
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonResult agree(Integer id) {
|
||||
OrderReturnDO orderReturnDO = orderReturnMapper.selectById(id);
|
||||
if (orderReturnDO == null) {
|
||||
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -145,4 +145,14 @@
|
||||
<bind name="limitIndex" value="pageSize * (index - 1)"/>
|
||||
LIMIT #{limitIndex}, #{pageSize}
|
||||
</select>
|
||||
|
||||
<!--
|
||||
查询 - 根据 id 查询
|
||||
-->
|
||||
<select id="selectById" resultType="cn.iocoder.mall.order.biz.dataobject.OrderReturnDO">
|
||||
SELECT
|
||||
<include refid="FIELDS"/>
|
||||
FROM `order_return`
|
||||
WHERE id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user