| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.matrix.system.hive.dao.ShoppingGoodsDao"> |
| | | <cache readOnly="true"></cache> |
| | | |
| | | <resultMap type="ShoppingGoods" id="ShoppingGoodsMap"> |
| | | |
| | | <id property="id" column="id" /> |
| | |
| | | invalid_time, |
| | | pay_methods, |
| | | is_infinite, |
| | | achieve_rule_id |
| | | |
| | | achieve_rule_id, |
| | | is_cooperate |
| | | ) |
| | | VALUES ( |
| | | #{id}, |
| | |
| | | #{invalidTime}, |
| | | #{payMethods}, |
| | | #{isInfinite}, |
| | | #{achieveRuleId} |
| | | |
| | | #{achieveRuleId}, |
| | | #{isCooperate} |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | t.id=cate_id) |
| | | cate_name |
| | | from shopping_goods a |
| | | where code=#{code} |
| | | where a.code=#{code} and a.is_del=1 |
| | | </select> |
| | | |
| | | <!-- 根据id查询 --> |