├── e3-common ├── .gitignore └── pom.xml ├── e3-manager ├── .gitignore ├── e3-manager-dao │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── cn │ │ │ └── e3 │ │ │ └── mapper │ │ │ ├── TbContentCategoryMapper.java │ │ │ ├── TbContentCategoryMapper.xml │ │ │ ├── TbContentMapper.java │ │ │ ├── TbContentMapper.xml │ │ │ ├── TbItemCatMapper.java │ │ │ ├── TbItemCatMapper.xml │ │ │ ├── TbItemDescMapper.java │ │ │ ├── TbItemDescMapper.xml │ │ │ ├── TbItemMapper.java │ │ │ ├── TbItemMapper.xml │ │ │ ├── TbItemParamItemMapper.java │ │ │ ├── TbItemParamItemMapper.xml │ │ │ ├── TbItemParamMapper.java │ │ │ ├── TbItemParamMapper.xml │ │ │ ├── TbOrderItemMapper.java │ │ │ ├── TbOrderItemMapper.xml │ │ │ ├── TbOrderMapper.java │ │ │ ├── TbOrderMapper.xml │ │ │ ├── TbOrderShippingMapper.java │ │ │ ├── TbOrderShippingMapper.xml │ │ │ ├── TbUserMapper.java │ │ │ └── TbUserMapper.xml │ │ └── resources │ │ └── generatorConfig-base.xml ├── e3-manager-pojo │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cn │ │ └── e3 │ │ └── pojo │ │ ├── TbContent.java │ │ ├── TbContentCategory.java │ │ ├── TbContentCategoryExample.java │ │ ├── TbContentExample.java │ │ ├── TbItem.java │ │ ├── TbItemCat.java │ │ ├── TbItemCatExample.java │ │ ├── TbItemDesc.java │ │ ├── TbItemDescExample.java │ │ ├── TbItemExample.java │ │ ├── TbItemParam.java │ │ ├── TbItemParamExample.java │ │ ├── TbItemParamItem.java │ │ ├── TbItemParamItemExample.java │ │ ├── TbOrder.java │ │ ├── TbOrderExample.java │ │ ├── TbOrderItem.java │ │ ├── TbOrderItemExample.java │ │ ├── TbOrderShipping.java │ │ ├── TbOrderShippingExample.java │ │ ├── TbUser.java │ │ └── TbUserExample.java ├── e3-manager-service │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── cn │ │ └── e3 │ │ └── manager │ │ └── service │ │ ├── ItemService.java │ │ └── impl │ │ └── ItemServiceImpl.java ├── e3-manager-web │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── cn │ │ │ └── e3 │ │ │ └── manager │ │ │ └── controller │ │ │ └── ItemController.java │ │ ├── resources │ │ ├── config │ │ │ └── sqlMapConfig.xml │ │ ├── jdbc.properties │ │ ├── log4j.properties │ │ ├── mvc │ │ │ └── springmvc.xml │ │ └── spring │ │ │ ├── applicationContext-dao.xml │ │ │ └── applicationContext-service.xml │ │ └── webapp │ │ └── WEB-INF │ │ └── web.xml └── pom.xml └── e3-parent ├── .gitignore └── pom.xml /e3-common/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /.settings 3 | .classpath 4 | .project 5 | -------------------------------------------------------------------------------- /e3-common/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | cn.e3mall 5 | e3-parent 6 | 0.0.1-SNAPSHOT 7 | 8 | e3-common 9 | 14 | 15 | 16 | 17 | joda-time 18 | joda-time 19 | 20 | 21 | 22 | org.apache.commons 23 | commons-lang3 24 | 25 | 26 | org.apache.commons 27 | commons-io 28 | 29 | 30 | commons-net 31 | commons-net 32 | 33 | 34 | 35 | com.fasterxml.jackson.core 36 | jackson-databind 37 | 38 | 39 | 40 | org.apache.httpcomponents 41 | httpclient 42 | 43 | 44 | 45 | org.quartz-scheduler 46 | quartz 47 | 48 | 49 | 50 | junit 51 | junit 52 | test 53 | 54 | 55 | 56 | org.slf4j 57 | slf4j-log4j12 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /e3-manager/.gitignore: -------------------------------------------------------------------------------- 1 | /.settings 2 | .settings/ 3 | target/ 4 | .project 5 | .classpath -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | cn.e3mall 6 | e3-manager 7 | 0.0.1-SNAPSHOT 8 | 9 | e3-manager-dao 10 | 11 | 12 | 13 | 14 | org.mybatis 15 | mybatis 16 | 17 | 18 | org.mybatis 19 | mybatis-spring 20 | 21 | 22 | com.github.miemiedev 23 | mybatis-paginator 24 | 25 | 26 | com.github.pagehelper 27 | pagehelper 28 | 29 | 30 | 31 | mysql 32 | mysql-connector-java 33 | 34 | 35 | 36 | com.alibaba 37 | druid 38 | 39 | 40 | 41 | cn.e3mall 42 | e3-manager-pojo 43 | 0.0.1-SNAPSHOT 44 | 45 | 46 | 51 | 52 | 53 | 54 | src/main/java 55 | 56 | **/*.properties 57 | **/*.xml 58 | 59 | false 60 | 61 | 62 | src/main/resources 63 | 64 | **/*.properties 65 | **/*.xml 66 | 67 | false 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbContentCategoryMapper.java: -------------------------------------------------------------------------------- 1 | package cn.e3.mapper; 2 | 3 | import cn.e3.pojo.TbContentCategory; 4 | import cn.e3.pojo.TbContentCategoryExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TbContentCategoryMapper { 9 | int countByExample(TbContentCategoryExample example); 10 | 11 | int deleteByExample(TbContentCategoryExample example); 12 | 13 | int deleteByPrimaryKey(Long id); 14 | 15 | int insert(TbContentCategory record); 16 | 17 | int insertSelective(TbContentCategory record); 18 | 19 | List selectByExample(TbContentCategoryExample example); 20 | 21 | TbContentCategory selectByPrimaryKey(Long id); 22 | 23 | int updateByExampleSelective(@Param("record") TbContentCategory record, @Param("example") TbContentCategoryExample example); 24 | 25 | int updateByExample(@Param("record") TbContentCategory record, @Param("example") TbContentCategoryExample example); 26 | 27 | int updateByPrimaryKeySelective(TbContentCategory record); 28 | 29 | int updateByPrimaryKey(TbContentCategory record); 30 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbContentCategoryMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | and ${criterion.condition} 23 | 24 | 25 | and ${criterion.condition} #{criterion.value} 26 | 27 | 28 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 29 | 30 | 31 | and ${criterion.condition} 32 | 33 | #{listItem} 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | and ${criterion.condition} 52 | 53 | 54 | and ${criterion.condition} #{criterion.value} 55 | 56 | 57 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 58 | 59 | 60 | and ${criterion.condition} 61 | 62 | #{listItem} 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | id, parent_id, name, status, sort_order, is_parent, created, updated 74 | 75 | 89 | 95 | 96 | delete from tb_content_category 97 | where id = #{id,jdbcType=BIGINT} 98 | 99 | 100 | delete from tb_content_category 101 | 102 | 103 | 104 | 105 | 106 | insert into tb_content_category (id, parent_id, name, 107 | status, sort_order, is_parent, 108 | created, updated) 109 | values (#{id,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, 110 | #{status,jdbcType=INTEGER}, #{sortOrder,jdbcType=INTEGER}, #{isParent,jdbcType=BIT}, 111 | #{created,jdbcType=TIMESTAMP}, #{updated,jdbcType=TIMESTAMP}) 112 | 113 | 114 | insert into tb_content_category 115 | 116 | 117 | id, 118 | 119 | 120 | parent_id, 121 | 122 | 123 | name, 124 | 125 | 126 | status, 127 | 128 | 129 | sort_order, 130 | 131 | 132 | is_parent, 133 | 134 | 135 | created, 136 | 137 | 138 | updated, 139 | 140 | 141 | 142 | 143 | #{id,jdbcType=BIGINT}, 144 | 145 | 146 | #{parentId,jdbcType=BIGINT}, 147 | 148 | 149 | #{name,jdbcType=VARCHAR}, 150 | 151 | 152 | #{status,jdbcType=INTEGER}, 153 | 154 | 155 | #{sortOrder,jdbcType=INTEGER}, 156 | 157 | 158 | #{isParent,jdbcType=BIT}, 159 | 160 | 161 | #{created,jdbcType=TIMESTAMP}, 162 | 163 | 164 | #{updated,jdbcType=TIMESTAMP}, 165 | 166 | 167 | 168 | 174 | 175 | update tb_content_category 176 | 177 | 178 | id = #{record.id,jdbcType=BIGINT}, 179 | 180 | 181 | parent_id = #{record.parentId,jdbcType=BIGINT}, 182 | 183 | 184 | name = #{record.name,jdbcType=VARCHAR}, 185 | 186 | 187 | status = #{record.status,jdbcType=INTEGER}, 188 | 189 | 190 | sort_order = #{record.sortOrder,jdbcType=INTEGER}, 191 | 192 | 193 | is_parent = #{record.isParent,jdbcType=BIT}, 194 | 195 | 196 | created = #{record.created,jdbcType=TIMESTAMP}, 197 | 198 | 199 | updated = #{record.updated,jdbcType=TIMESTAMP}, 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | update tb_content_category 208 | set id = #{record.id,jdbcType=BIGINT}, 209 | parent_id = #{record.parentId,jdbcType=BIGINT}, 210 | name = #{record.name,jdbcType=VARCHAR}, 211 | status = #{record.status,jdbcType=INTEGER}, 212 | sort_order = #{record.sortOrder,jdbcType=INTEGER}, 213 | is_parent = #{record.isParent,jdbcType=BIT}, 214 | created = #{record.created,jdbcType=TIMESTAMP}, 215 | updated = #{record.updated,jdbcType=TIMESTAMP} 216 | 217 | 218 | 219 | 220 | 221 | update tb_content_category 222 | 223 | 224 | parent_id = #{parentId,jdbcType=BIGINT}, 225 | 226 | 227 | name = #{name,jdbcType=VARCHAR}, 228 | 229 | 230 | status = #{status,jdbcType=INTEGER}, 231 | 232 | 233 | sort_order = #{sortOrder,jdbcType=INTEGER}, 234 | 235 | 236 | is_parent = #{isParent,jdbcType=BIT}, 237 | 238 | 239 | created = #{created,jdbcType=TIMESTAMP}, 240 | 241 | 242 | updated = #{updated,jdbcType=TIMESTAMP}, 243 | 244 | 245 | where id = #{id,jdbcType=BIGINT} 246 | 247 | 248 | update tb_content_category 249 | set parent_id = #{parentId,jdbcType=BIGINT}, 250 | name = #{name,jdbcType=VARCHAR}, 251 | status = #{status,jdbcType=INTEGER}, 252 | sort_order = #{sortOrder,jdbcType=INTEGER}, 253 | is_parent = #{isParent,jdbcType=BIT}, 254 | created = #{created,jdbcType=TIMESTAMP}, 255 | updated = #{updated,jdbcType=TIMESTAMP} 256 | where id = #{id,jdbcType=BIGINT} 257 | 258 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbContentMapper.java: -------------------------------------------------------------------------------- 1 | package cn.e3.mapper; 2 | 3 | import cn.e3.pojo.TbContent; 4 | import cn.e3.pojo.TbContentExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TbContentMapper { 9 | int countByExample(TbContentExample example); 10 | 11 | int deleteByExample(TbContentExample example); 12 | 13 | int deleteByPrimaryKey(Long id); 14 | 15 | int insert(TbContent record); 16 | 17 | int insertSelective(TbContent record); 18 | 19 | List selectByExampleWithBLOBs(TbContentExample example); 20 | 21 | List selectByExample(TbContentExample example); 22 | 23 | TbContent selectByPrimaryKey(Long id); 24 | 25 | int updateByExampleSelective(@Param("record") TbContent record, @Param("example") TbContentExample example); 26 | 27 | int updateByExampleWithBLOBs(@Param("record") TbContent record, @Param("example") TbContentExample example); 28 | 29 | int updateByExample(@Param("record") TbContent record, @Param("example") TbContentExample example); 30 | 31 | int updateByPrimaryKeySelective(TbContent record); 32 | 33 | int updateByPrimaryKeyWithBLOBs(TbContent record); 34 | 35 | int updateByPrimaryKey(TbContent record); 36 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbContentMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | and ${criterion.condition} 28 | 29 | 30 | and ${criterion.condition} #{criterion.value} 31 | 32 | 33 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 34 | 35 | 36 | and ${criterion.condition} 37 | 38 | #{listItem} 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | and ${criterion.condition} 57 | 58 | 59 | and ${criterion.condition} #{criterion.value} 60 | 61 | 62 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 63 | 64 | 65 | and ${criterion.condition} 66 | 67 | #{listItem} 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | id, category_id, title, sub_title, title_desc, url, pic, pic2, created, updated 79 | 80 | 81 | content 82 | 83 | 99 | 113 | 121 | 122 | delete from tb_content 123 | where id = #{id,jdbcType=BIGINT} 124 | 125 | 126 | delete from tb_content 127 | 128 | 129 | 130 | 131 | 132 | insert into tb_content (id, category_id, title, 133 | sub_title, title_desc, url, 134 | pic, pic2, created, 135 | updated, content) 136 | values (#{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, 137 | #{subTitle,jdbcType=VARCHAR}, #{titleDesc,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, 138 | #{pic,jdbcType=VARCHAR}, #{pic2,jdbcType=VARCHAR}, #{created,jdbcType=TIMESTAMP}, 139 | #{updated,jdbcType=TIMESTAMP}, #{content,jdbcType=LONGVARCHAR}) 140 | 141 | 142 | insert into tb_content 143 | 144 | 145 | id, 146 | 147 | 148 | category_id, 149 | 150 | 151 | title, 152 | 153 | 154 | sub_title, 155 | 156 | 157 | title_desc, 158 | 159 | 160 | url, 161 | 162 | 163 | pic, 164 | 165 | 166 | pic2, 167 | 168 | 169 | created, 170 | 171 | 172 | updated, 173 | 174 | 175 | content, 176 | 177 | 178 | 179 | 180 | #{id,jdbcType=BIGINT}, 181 | 182 | 183 | #{categoryId,jdbcType=BIGINT}, 184 | 185 | 186 | #{title,jdbcType=VARCHAR}, 187 | 188 | 189 | #{subTitle,jdbcType=VARCHAR}, 190 | 191 | 192 | #{titleDesc,jdbcType=VARCHAR}, 193 | 194 | 195 | #{url,jdbcType=VARCHAR}, 196 | 197 | 198 | #{pic,jdbcType=VARCHAR}, 199 | 200 | 201 | #{pic2,jdbcType=VARCHAR}, 202 | 203 | 204 | #{created,jdbcType=TIMESTAMP}, 205 | 206 | 207 | #{updated,jdbcType=TIMESTAMP}, 208 | 209 | 210 | #{content,jdbcType=LONGVARCHAR}, 211 | 212 | 213 | 214 | 220 | 221 | update tb_content 222 | 223 | 224 | id = #{record.id,jdbcType=BIGINT}, 225 | 226 | 227 | category_id = #{record.categoryId,jdbcType=BIGINT}, 228 | 229 | 230 | title = #{record.title,jdbcType=VARCHAR}, 231 | 232 | 233 | sub_title = #{record.subTitle,jdbcType=VARCHAR}, 234 | 235 | 236 | title_desc = #{record.titleDesc,jdbcType=VARCHAR}, 237 | 238 | 239 | url = #{record.url,jdbcType=VARCHAR}, 240 | 241 | 242 | pic = #{record.pic,jdbcType=VARCHAR}, 243 | 244 | 245 | pic2 = #{record.pic2,jdbcType=VARCHAR}, 246 | 247 | 248 | created = #{record.created,jdbcType=TIMESTAMP}, 249 | 250 | 251 | updated = #{record.updated,jdbcType=TIMESTAMP}, 252 | 253 | 254 | content = #{record.content,jdbcType=LONGVARCHAR}, 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | update tb_content 263 | set id = #{record.id,jdbcType=BIGINT}, 264 | category_id = #{record.categoryId,jdbcType=BIGINT}, 265 | title = #{record.title,jdbcType=VARCHAR}, 266 | sub_title = #{record.subTitle,jdbcType=VARCHAR}, 267 | title_desc = #{record.titleDesc,jdbcType=VARCHAR}, 268 | url = #{record.url,jdbcType=VARCHAR}, 269 | pic = #{record.pic,jdbcType=VARCHAR}, 270 | pic2 = #{record.pic2,jdbcType=VARCHAR}, 271 | created = #{record.created,jdbcType=TIMESTAMP}, 272 | updated = #{record.updated,jdbcType=TIMESTAMP}, 273 | content = #{record.content,jdbcType=LONGVARCHAR} 274 | 275 | 276 | 277 | 278 | 279 | update tb_content 280 | set id = #{record.id,jdbcType=BIGINT}, 281 | category_id = #{record.categoryId,jdbcType=BIGINT}, 282 | title = #{record.title,jdbcType=VARCHAR}, 283 | sub_title = #{record.subTitle,jdbcType=VARCHAR}, 284 | title_desc = #{record.titleDesc,jdbcType=VARCHAR}, 285 | url = #{record.url,jdbcType=VARCHAR}, 286 | pic = #{record.pic,jdbcType=VARCHAR}, 287 | pic2 = #{record.pic2,jdbcType=VARCHAR}, 288 | created = #{record.created,jdbcType=TIMESTAMP}, 289 | updated = #{record.updated,jdbcType=TIMESTAMP} 290 | 291 | 292 | 293 | 294 | 295 | update tb_content 296 | 297 | 298 | category_id = #{categoryId,jdbcType=BIGINT}, 299 | 300 | 301 | title = #{title,jdbcType=VARCHAR}, 302 | 303 | 304 | sub_title = #{subTitle,jdbcType=VARCHAR}, 305 | 306 | 307 | title_desc = #{titleDesc,jdbcType=VARCHAR}, 308 | 309 | 310 | url = #{url,jdbcType=VARCHAR}, 311 | 312 | 313 | pic = #{pic,jdbcType=VARCHAR}, 314 | 315 | 316 | pic2 = #{pic2,jdbcType=VARCHAR}, 317 | 318 | 319 | created = #{created,jdbcType=TIMESTAMP}, 320 | 321 | 322 | updated = #{updated,jdbcType=TIMESTAMP}, 323 | 324 | 325 | content = #{content,jdbcType=LONGVARCHAR}, 326 | 327 | 328 | where id = #{id,jdbcType=BIGINT} 329 | 330 | 331 | update tb_content 332 | set category_id = #{categoryId,jdbcType=BIGINT}, 333 | title = #{title,jdbcType=VARCHAR}, 334 | sub_title = #{subTitle,jdbcType=VARCHAR}, 335 | title_desc = #{titleDesc,jdbcType=VARCHAR}, 336 | url = #{url,jdbcType=VARCHAR}, 337 | pic = #{pic,jdbcType=VARCHAR}, 338 | pic2 = #{pic2,jdbcType=VARCHAR}, 339 | created = #{created,jdbcType=TIMESTAMP}, 340 | updated = #{updated,jdbcType=TIMESTAMP}, 341 | content = #{content,jdbcType=LONGVARCHAR} 342 | where id = #{id,jdbcType=BIGINT} 343 | 344 | 345 | update tb_content 346 | set category_id = #{categoryId,jdbcType=BIGINT}, 347 | title = #{title,jdbcType=VARCHAR}, 348 | sub_title = #{subTitle,jdbcType=VARCHAR}, 349 | title_desc = #{titleDesc,jdbcType=VARCHAR}, 350 | url = #{url,jdbcType=VARCHAR}, 351 | pic = #{pic,jdbcType=VARCHAR}, 352 | pic2 = #{pic2,jdbcType=VARCHAR}, 353 | created = #{created,jdbcType=TIMESTAMP}, 354 | updated = #{updated,jdbcType=TIMESTAMP} 355 | where id = #{id,jdbcType=BIGINT} 356 | 357 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbItemCatMapper.java: -------------------------------------------------------------------------------- 1 | package cn.e3.mapper; 2 | 3 | import cn.e3.pojo.TbItemCat; 4 | import cn.e3.pojo.TbItemCatExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TbItemCatMapper { 9 | int countByExample(TbItemCatExample example); 10 | 11 | int deleteByExample(TbItemCatExample example); 12 | 13 | int deleteByPrimaryKey(Long id); 14 | 15 | int insert(TbItemCat record); 16 | 17 | int insertSelective(TbItemCat record); 18 | 19 | List selectByExample(TbItemCatExample example); 20 | 21 | TbItemCat selectByPrimaryKey(Long id); 22 | 23 | int updateByExampleSelective(@Param("record") TbItemCat record, @Param("example") TbItemCatExample example); 24 | 25 | int updateByExample(@Param("record") TbItemCat record, @Param("example") TbItemCatExample example); 26 | 27 | int updateByPrimaryKeySelective(TbItemCat record); 28 | 29 | int updateByPrimaryKey(TbItemCat record); 30 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbItemCatMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | and ${criterion.condition} 23 | 24 | 25 | and ${criterion.condition} #{criterion.value} 26 | 27 | 28 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 29 | 30 | 31 | and ${criterion.condition} 32 | 33 | #{listItem} 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | and ${criterion.condition} 52 | 53 | 54 | and ${criterion.condition} #{criterion.value} 55 | 56 | 57 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 58 | 59 | 60 | and ${criterion.condition} 61 | 62 | #{listItem} 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | id, parent_id, name, status, sort_order, is_parent, created, updated 74 | 75 | 89 | 95 | 96 | delete from tb_item_cat 97 | where id = #{id,jdbcType=BIGINT} 98 | 99 | 100 | delete from tb_item_cat 101 | 102 | 103 | 104 | 105 | 106 | insert into tb_item_cat (id, parent_id, name, 107 | status, sort_order, is_parent, 108 | created, updated) 109 | values (#{id,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, 110 | #{status,jdbcType=INTEGER}, #{sortOrder,jdbcType=INTEGER}, #{isParent,jdbcType=BIT}, 111 | #{created,jdbcType=TIMESTAMP}, #{updated,jdbcType=TIMESTAMP}) 112 | 113 | 114 | insert into tb_item_cat 115 | 116 | 117 | id, 118 | 119 | 120 | parent_id, 121 | 122 | 123 | name, 124 | 125 | 126 | status, 127 | 128 | 129 | sort_order, 130 | 131 | 132 | is_parent, 133 | 134 | 135 | created, 136 | 137 | 138 | updated, 139 | 140 | 141 | 142 | 143 | #{id,jdbcType=BIGINT}, 144 | 145 | 146 | #{parentId,jdbcType=BIGINT}, 147 | 148 | 149 | #{name,jdbcType=VARCHAR}, 150 | 151 | 152 | #{status,jdbcType=INTEGER}, 153 | 154 | 155 | #{sortOrder,jdbcType=INTEGER}, 156 | 157 | 158 | #{isParent,jdbcType=BIT}, 159 | 160 | 161 | #{created,jdbcType=TIMESTAMP}, 162 | 163 | 164 | #{updated,jdbcType=TIMESTAMP}, 165 | 166 | 167 | 168 | 174 | 175 | update tb_item_cat 176 | 177 | 178 | id = #{record.id,jdbcType=BIGINT}, 179 | 180 | 181 | parent_id = #{record.parentId,jdbcType=BIGINT}, 182 | 183 | 184 | name = #{record.name,jdbcType=VARCHAR}, 185 | 186 | 187 | status = #{record.status,jdbcType=INTEGER}, 188 | 189 | 190 | sort_order = #{record.sortOrder,jdbcType=INTEGER}, 191 | 192 | 193 | is_parent = #{record.isParent,jdbcType=BIT}, 194 | 195 | 196 | created = #{record.created,jdbcType=TIMESTAMP}, 197 | 198 | 199 | updated = #{record.updated,jdbcType=TIMESTAMP}, 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | update tb_item_cat 208 | set id = #{record.id,jdbcType=BIGINT}, 209 | parent_id = #{record.parentId,jdbcType=BIGINT}, 210 | name = #{record.name,jdbcType=VARCHAR}, 211 | status = #{record.status,jdbcType=INTEGER}, 212 | sort_order = #{record.sortOrder,jdbcType=INTEGER}, 213 | is_parent = #{record.isParent,jdbcType=BIT}, 214 | created = #{record.created,jdbcType=TIMESTAMP}, 215 | updated = #{record.updated,jdbcType=TIMESTAMP} 216 | 217 | 218 | 219 | 220 | 221 | update tb_item_cat 222 | 223 | 224 | parent_id = #{parentId,jdbcType=BIGINT}, 225 | 226 | 227 | name = #{name,jdbcType=VARCHAR}, 228 | 229 | 230 | status = #{status,jdbcType=INTEGER}, 231 | 232 | 233 | sort_order = #{sortOrder,jdbcType=INTEGER}, 234 | 235 | 236 | is_parent = #{isParent,jdbcType=BIT}, 237 | 238 | 239 | created = #{created,jdbcType=TIMESTAMP}, 240 | 241 | 242 | updated = #{updated,jdbcType=TIMESTAMP}, 243 | 244 | 245 | where id = #{id,jdbcType=BIGINT} 246 | 247 | 248 | update tb_item_cat 249 | set parent_id = #{parentId,jdbcType=BIGINT}, 250 | name = #{name,jdbcType=VARCHAR}, 251 | status = #{status,jdbcType=INTEGER}, 252 | sort_order = #{sortOrder,jdbcType=INTEGER}, 253 | is_parent = #{isParent,jdbcType=BIT}, 254 | created = #{created,jdbcType=TIMESTAMP}, 255 | updated = #{updated,jdbcType=TIMESTAMP} 256 | where id = #{id,jdbcType=BIGINT} 257 | 258 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbItemDescMapper.java: -------------------------------------------------------------------------------- 1 | package cn.e3.mapper; 2 | 3 | import cn.e3.pojo.TbItemDesc; 4 | import cn.e3.pojo.TbItemDescExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TbItemDescMapper { 9 | int countByExample(TbItemDescExample example); 10 | 11 | int deleteByExample(TbItemDescExample example); 12 | 13 | int deleteByPrimaryKey(Long itemId); 14 | 15 | int insert(TbItemDesc record); 16 | 17 | int insertSelective(TbItemDesc record); 18 | 19 | List selectByExampleWithBLOBs(TbItemDescExample example); 20 | 21 | List selectByExample(TbItemDescExample example); 22 | 23 | TbItemDesc selectByPrimaryKey(Long itemId); 24 | 25 | int updateByExampleSelective(@Param("record") TbItemDesc record, @Param("example") TbItemDescExample example); 26 | 27 | int updateByExampleWithBLOBs(@Param("record") TbItemDesc record, @Param("example") TbItemDescExample example); 28 | 29 | int updateByExample(@Param("record") TbItemDesc record, @Param("example") TbItemDescExample example); 30 | 31 | int updateByPrimaryKeySelective(TbItemDesc record); 32 | 33 | int updateByPrimaryKeyWithBLOBs(TbItemDesc record); 34 | 35 | int updateByPrimaryKey(TbItemDesc record); 36 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbItemDescMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | and ${criterion.condition} 21 | 22 | 23 | and ${criterion.condition} #{criterion.value} 24 | 25 | 26 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 27 | 28 | 29 | and ${criterion.condition} 30 | 31 | #{listItem} 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | and ${criterion.condition} 50 | 51 | 52 | and ${criterion.condition} #{criterion.value} 53 | 54 | 55 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 56 | 57 | 58 | and ${criterion.condition} 59 | 60 | #{listItem} 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | item_id, created, updated 72 | 73 | 74 | item_desc 75 | 76 | 92 | 106 | 114 | 115 | delete from tb_item_desc 116 | where item_id = #{itemId,jdbcType=BIGINT} 117 | 118 | 119 | delete from tb_item_desc 120 | 121 | 122 | 123 | 124 | 125 | insert into tb_item_desc (item_id, created, updated, 126 | item_desc) 127 | values (#{itemId,jdbcType=BIGINT}, #{created,jdbcType=TIMESTAMP}, #{updated,jdbcType=TIMESTAMP}, 128 | #{itemDesc,jdbcType=LONGVARCHAR}) 129 | 130 | 131 | insert into tb_item_desc 132 | 133 | 134 | item_id, 135 | 136 | 137 | created, 138 | 139 | 140 | updated, 141 | 142 | 143 | item_desc, 144 | 145 | 146 | 147 | 148 | #{itemId,jdbcType=BIGINT}, 149 | 150 | 151 | #{created,jdbcType=TIMESTAMP}, 152 | 153 | 154 | #{updated,jdbcType=TIMESTAMP}, 155 | 156 | 157 | #{itemDesc,jdbcType=LONGVARCHAR}, 158 | 159 | 160 | 161 | 167 | 168 | update tb_item_desc 169 | 170 | 171 | item_id = #{record.itemId,jdbcType=BIGINT}, 172 | 173 | 174 | created = #{record.created,jdbcType=TIMESTAMP}, 175 | 176 | 177 | updated = #{record.updated,jdbcType=TIMESTAMP}, 178 | 179 | 180 | item_desc = #{record.itemDesc,jdbcType=LONGVARCHAR}, 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | update tb_item_desc 189 | set item_id = #{record.itemId,jdbcType=BIGINT}, 190 | created = #{record.created,jdbcType=TIMESTAMP}, 191 | updated = #{record.updated,jdbcType=TIMESTAMP}, 192 | item_desc = #{record.itemDesc,jdbcType=LONGVARCHAR} 193 | 194 | 195 | 196 | 197 | 198 | update tb_item_desc 199 | set item_id = #{record.itemId,jdbcType=BIGINT}, 200 | created = #{record.created,jdbcType=TIMESTAMP}, 201 | updated = #{record.updated,jdbcType=TIMESTAMP} 202 | 203 | 204 | 205 | 206 | 207 | update tb_item_desc 208 | 209 | 210 | created = #{created,jdbcType=TIMESTAMP}, 211 | 212 | 213 | updated = #{updated,jdbcType=TIMESTAMP}, 214 | 215 | 216 | item_desc = #{itemDesc,jdbcType=LONGVARCHAR}, 217 | 218 | 219 | where item_id = #{itemId,jdbcType=BIGINT} 220 | 221 | 222 | update tb_item_desc 223 | set created = #{created,jdbcType=TIMESTAMP}, 224 | updated = #{updated,jdbcType=TIMESTAMP}, 225 | item_desc = #{itemDesc,jdbcType=LONGVARCHAR} 226 | where item_id = #{itemId,jdbcType=BIGINT} 227 | 228 | 229 | update tb_item_desc 230 | set created = #{created,jdbcType=TIMESTAMP}, 231 | updated = #{updated,jdbcType=TIMESTAMP} 232 | where item_id = #{itemId,jdbcType=BIGINT} 233 | 234 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbItemMapper.java: -------------------------------------------------------------------------------- 1 | package cn.e3.mapper; 2 | 3 | import cn.e3.pojo.TbItem; 4 | import cn.e3.pojo.TbItemExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TbItemMapper { 9 | int countByExample(TbItemExample example); 10 | 11 | int deleteByExample(TbItemExample example); 12 | 13 | int deleteByPrimaryKey(Long id); 14 | 15 | int insert(TbItem record); 16 | 17 | int insertSelective(TbItem record); 18 | 19 | List selectByExample(TbItemExample example); 20 | 21 | TbItem selectByPrimaryKey(Long id); 22 | 23 | int updateByExampleSelective(@Param("record") TbItem record, @Param("example") TbItemExample example); 24 | 25 | int updateByExample(@Param("record") TbItem record, @Param("example") TbItemExample example); 26 | 27 | int updateByPrimaryKeySelective(TbItem record); 28 | 29 | int updateByPrimaryKey(TbItem record); 30 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbItemMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | and ${criterion.condition} 26 | 27 | 28 | and ${criterion.condition} #{criterion.value} 29 | 30 | 31 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 32 | 33 | 34 | and ${criterion.condition} 35 | 36 | #{listItem} 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | and ${criterion.condition} 55 | 56 | 57 | and ${criterion.condition} #{criterion.value} 58 | 59 | 60 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 61 | 62 | 63 | and ${criterion.condition} 64 | 65 | #{listItem} 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | id, title, sell_point, price, num, barcode, image, cid, status, created, updated 77 | 78 | 92 | 98 | 99 | delete from tb_item 100 | where id = #{id,jdbcType=BIGINT} 101 | 102 | 103 | delete from tb_item 104 | 105 | 106 | 107 | 108 | 109 | insert into tb_item (id, title, sell_point, 110 | price, num, barcode, 111 | image, cid, status, 112 | created, updated) 113 | values (#{id,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{sellPoint,jdbcType=VARCHAR}, 114 | #{price,jdbcType=BIGINT}, #{num,jdbcType=INTEGER}, #{barcode,jdbcType=VARCHAR}, 115 | #{image,jdbcType=VARCHAR}, #{cid,jdbcType=BIGINT}, #{status,jdbcType=TINYINT}, 116 | #{created,jdbcType=TIMESTAMP}, #{updated,jdbcType=TIMESTAMP}) 117 | 118 | 119 | insert into tb_item 120 | 121 | 122 | id, 123 | 124 | 125 | title, 126 | 127 | 128 | sell_point, 129 | 130 | 131 | price, 132 | 133 | 134 | num, 135 | 136 | 137 | barcode, 138 | 139 | 140 | image, 141 | 142 | 143 | cid, 144 | 145 | 146 | status, 147 | 148 | 149 | created, 150 | 151 | 152 | updated, 153 | 154 | 155 | 156 | 157 | #{id,jdbcType=BIGINT}, 158 | 159 | 160 | #{title,jdbcType=VARCHAR}, 161 | 162 | 163 | #{sellPoint,jdbcType=VARCHAR}, 164 | 165 | 166 | #{price,jdbcType=BIGINT}, 167 | 168 | 169 | #{num,jdbcType=INTEGER}, 170 | 171 | 172 | #{barcode,jdbcType=VARCHAR}, 173 | 174 | 175 | #{image,jdbcType=VARCHAR}, 176 | 177 | 178 | #{cid,jdbcType=BIGINT}, 179 | 180 | 181 | #{status,jdbcType=TINYINT}, 182 | 183 | 184 | #{created,jdbcType=TIMESTAMP}, 185 | 186 | 187 | #{updated,jdbcType=TIMESTAMP}, 188 | 189 | 190 | 191 | 197 | 198 | update tb_item 199 | 200 | 201 | id = #{record.id,jdbcType=BIGINT}, 202 | 203 | 204 | title = #{record.title,jdbcType=VARCHAR}, 205 | 206 | 207 | sell_point = #{record.sellPoint,jdbcType=VARCHAR}, 208 | 209 | 210 | price = #{record.price,jdbcType=BIGINT}, 211 | 212 | 213 | num = #{record.num,jdbcType=INTEGER}, 214 | 215 | 216 | barcode = #{record.barcode,jdbcType=VARCHAR}, 217 | 218 | 219 | image = #{record.image,jdbcType=VARCHAR}, 220 | 221 | 222 | cid = #{record.cid,jdbcType=BIGINT}, 223 | 224 | 225 | status = #{record.status,jdbcType=TINYINT}, 226 | 227 | 228 | created = #{record.created,jdbcType=TIMESTAMP}, 229 | 230 | 231 | updated = #{record.updated,jdbcType=TIMESTAMP}, 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | update tb_item 240 | set id = #{record.id,jdbcType=BIGINT}, 241 | title = #{record.title,jdbcType=VARCHAR}, 242 | sell_point = #{record.sellPoint,jdbcType=VARCHAR}, 243 | price = #{record.price,jdbcType=BIGINT}, 244 | num = #{record.num,jdbcType=INTEGER}, 245 | barcode = #{record.barcode,jdbcType=VARCHAR}, 246 | image = #{record.image,jdbcType=VARCHAR}, 247 | cid = #{record.cid,jdbcType=BIGINT}, 248 | status = #{record.status,jdbcType=TINYINT}, 249 | created = #{record.created,jdbcType=TIMESTAMP}, 250 | updated = #{record.updated,jdbcType=TIMESTAMP} 251 | 252 | 253 | 254 | 255 | 256 | update tb_item 257 | 258 | 259 | title = #{title,jdbcType=VARCHAR}, 260 | 261 | 262 | sell_point = #{sellPoint,jdbcType=VARCHAR}, 263 | 264 | 265 | price = #{price,jdbcType=BIGINT}, 266 | 267 | 268 | num = #{num,jdbcType=INTEGER}, 269 | 270 | 271 | barcode = #{barcode,jdbcType=VARCHAR}, 272 | 273 | 274 | image = #{image,jdbcType=VARCHAR}, 275 | 276 | 277 | cid = #{cid,jdbcType=BIGINT}, 278 | 279 | 280 | status = #{status,jdbcType=TINYINT}, 281 | 282 | 283 | created = #{created,jdbcType=TIMESTAMP}, 284 | 285 | 286 | updated = #{updated,jdbcType=TIMESTAMP}, 287 | 288 | 289 | where id = #{id,jdbcType=BIGINT} 290 | 291 | 292 | update tb_item 293 | set title = #{title,jdbcType=VARCHAR}, 294 | sell_point = #{sellPoint,jdbcType=VARCHAR}, 295 | price = #{price,jdbcType=BIGINT}, 296 | num = #{num,jdbcType=INTEGER}, 297 | barcode = #{barcode,jdbcType=VARCHAR}, 298 | image = #{image,jdbcType=VARCHAR}, 299 | cid = #{cid,jdbcType=BIGINT}, 300 | status = #{status,jdbcType=TINYINT}, 301 | created = #{created,jdbcType=TIMESTAMP}, 302 | updated = #{updated,jdbcType=TIMESTAMP} 303 | where id = #{id,jdbcType=BIGINT} 304 | 305 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbItemParamItemMapper.java: -------------------------------------------------------------------------------- 1 | package cn.e3.mapper; 2 | 3 | import cn.e3.pojo.TbItemParamItem; 4 | import cn.e3.pojo.TbItemParamItemExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TbItemParamItemMapper { 9 | int countByExample(TbItemParamItemExample example); 10 | 11 | int deleteByExample(TbItemParamItemExample example); 12 | 13 | int deleteByPrimaryKey(Long id); 14 | 15 | int insert(TbItemParamItem record); 16 | 17 | int insertSelective(TbItemParamItem record); 18 | 19 | List selectByExampleWithBLOBs(TbItemParamItemExample example); 20 | 21 | List selectByExample(TbItemParamItemExample example); 22 | 23 | TbItemParamItem selectByPrimaryKey(Long id); 24 | 25 | int updateByExampleSelective(@Param("record") TbItemParamItem record, @Param("example") TbItemParamItemExample example); 26 | 27 | int updateByExampleWithBLOBs(@Param("record") TbItemParamItem record, @Param("example") TbItemParamItemExample example); 28 | 29 | int updateByExample(@Param("record") TbItemParamItem record, @Param("example") TbItemParamItemExample example); 30 | 31 | int updateByPrimaryKeySelective(TbItemParamItem record); 32 | 33 | int updateByPrimaryKeyWithBLOBs(TbItemParamItem record); 34 | 35 | int updateByPrimaryKey(TbItemParamItem record); 36 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbItemParamItemMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | and ${criterion.condition} 22 | 23 | 24 | and ${criterion.condition} #{criterion.value} 25 | 26 | 27 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 28 | 29 | 30 | and ${criterion.condition} 31 | 32 | #{listItem} 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | and ${criterion.condition} 51 | 52 | 53 | and ${criterion.condition} #{criterion.value} 54 | 55 | 56 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 57 | 58 | 59 | and ${criterion.condition} 60 | 61 | #{listItem} 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | id, item_id, created, updated 73 | 74 | 75 | param_data 76 | 77 | 93 | 107 | 115 | 116 | delete from tb_item_param_item 117 | where id = #{id,jdbcType=BIGINT} 118 | 119 | 120 | delete from tb_item_param_item 121 | 122 | 123 | 124 | 125 | 126 | insert into tb_item_param_item (id, item_id, created, 127 | updated, param_data) 128 | values (#{id,jdbcType=BIGINT}, #{itemId,jdbcType=BIGINT}, #{created,jdbcType=TIMESTAMP}, 129 | #{updated,jdbcType=TIMESTAMP}, #{paramData,jdbcType=LONGVARCHAR}) 130 | 131 | 132 | insert into tb_item_param_item 133 | 134 | 135 | id, 136 | 137 | 138 | item_id, 139 | 140 | 141 | created, 142 | 143 | 144 | updated, 145 | 146 | 147 | param_data, 148 | 149 | 150 | 151 | 152 | #{id,jdbcType=BIGINT}, 153 | 154 | 155 | #{itemId,jdbcType=BIGINT}, 156 | 157 | 158 | #{created,jdbcType=TIMESTAMP}, 159 | 160 | 161 | #{updated,jdbcType=TIMESTAMP}, 162 | 163 | 164 | #{paramData,jdbcType=LONGVARCHAR}, 165 | 166 | 167 | 168 | 174 | 175 | update tb_item_param_item 176 | 177 | 178 | id = #{record.id,jdbcType=BIGINT}, 179 | 180 | 181 | item_id = #{record.itemId,jdbcType=BIGINT}, 182 | 183 | 184 | created = #{record.created,jdbcType=TIMESTAMP}, 185 | 186 | 187 | updated = #{record.updated,jdbcType=TIMESTAMP}, 188 | 189 | 190 | param_data = #{record.paramData,jdbcType=LONGVARCHAR}, 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | update tb_item_param_item 199 | set id = #{record.id,jdbcType=BIGINT}, 200 | item_id = #{record.itemId,jdbcType=BIGINT}, 201 | created = #{record.created,jdbcType=TIMESTAMP}, 202 | updated = #{record.updated,jdbcType=TIMESTAMP}, 203 | param_data = #{record.paramData,jdbcType=LONGVARCHAR} 204 | 205 | 206 | 207 | 208 | 209 | update tb_item_param_item 210 | set id = #{record.id,jdbcType=BIGINT}, 211 | item_id = #{record.itemId,jdbcType=BIGINT}, 212 | created = #{record.created,jdbcType=TIMESTAMP}, 213 | updated = #{record.updated,jdbcType=TIMESTAMP} 214 | 215 | 216 | 217 | 218 | 219 | update tb_item_param_item 220 | 221 | 222 | item_id = #{itemId,jdbcType=BIGINT}, 223 | 224 | 225 | created = #{created,jdbcType=TIMESTAMP}, 226 | 227 | 228 | updated = #{updated,jdbcType=TIMESTAMP}, 229 | 230 | 231 | param_data = #{paramData,jdbcType=LONGVARCHAR}, 232 | 233 | 234 | where id = #{id,jdbcType=BIGINT} 235 | 236 | 237 | update tb_item_param_item 238 | set item_id = #{itemId,jdbcType=BIGINT}, 239 | created = #{created,jdbcType=TIMESTAMP}, 240 | updated = #{updated,jdbcType=TIMESTAMP}, 241 | param_data = #{paramData,jdbcType=LONGVARCHAR} 242 | where id = #{id,jdbcType=BIGINT} 243 | 244 | 245 | update tb_item_param_item 246 | set item_id = #{itemId,jdbcType=BIGINT}, 247 | created = #{created,jdbcType=TIMESTAMP}, 248 | updated = #{updated,jdbcType=TIMESTAMP} 249 | where id = #{id,jdbcType=BIGINT} 250 | 251 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbItemParamMapper.java: -------------------------------------------------------------------------------- 1 | package cn.e3.mapper; 2 | 3 | import cn.e3.pojo.TbItemParam; 4 | import cn.e3.pojo.TbItemParamExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TbItemParamMapper { 9 | int countByExample(TbItemParamExample example); 10 | 11 | int deleteByExample(TbItemParamExample example); 12 | 13 | int deleteByPrimaryKey(Long id); 14 | 15 | int insert(TbItemParam record); 16 | 17 | int insertSelective(TbItemParam record); 18 | 19 | List selectByExampleWithBLOBs(TbItemParamExample example); 20 | 21 | List selectByExample(TbItemParamExample example); 22 | 23 | TbItemParam selectByPrimaryKey(Long id); 24 | 25 | int updateByExampleSelective(@Param("record") TbItemParam record, @Param("example") TbItemParamExample example); 26 | 27 | int updateByExampleWithBLOBs(@Param("record") TbItemParam record, @Param("example") TbItemParamExample example); 28 | 29 | int updateByExample(@Param("record") TbItemParam record, @Param("example") TbItemParamExample example); 30 | 31 | int updateByPrimaryKeySelective(TbItemParam record); 32 | 33 | int updateByPrimaryKeyWithBLOBs(TbItemParam record); 34 | 35 | int updateByPrimaryKey(TbItemParam record); 36 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbItemParamMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | and ${criterion.condition} 22 | 23 | 24 | and ${criterion.condition} #{criterion.value} 25 | 26 | 27 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 28 | 29 | 30 | and ${criterion.condition} 31 | 32 | #{listItem} 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | and ${criterion.condition} 51 | 52 | 53 | and ${criterion.condition} #{criterion.value} 54 | 55 | 56 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 57 | 58 | 59 | and ${criterion.condition} 60 | 61 | #{listItem} 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | id, item_cat_id, created, updated 73 | 74 | 75 | param_data 76 | 77 | 93 | 107 | 115 | 116 | delete from tb_item_param 117 | where id = #{id,jdbcType=BIGINT} 118 | 119 | 120 | delete from tb_item_param 121 | 122 | 123 | 124 | 125 | 126 | insert into tb_item_param (id, item_cat_id, created, 127 | updated, param_data) 128 | values (#{id,jdbcType=BIGINT}, #{itemCatId,jdbcType=BIGINT}, #{created,jdbcType=TIMESTAMP}, 129 | #{updated,jdbcType=TIMESTAMP}, #{paramData,jdbcType=LONGVARCHAR}) 130 | 131 | 132 | insert into tb_item_param 133 | 134 | 135 | id, 136 | 137 | 138 | item_cat_id, 139 | 140 | 141 | created, 142 | 143 | 144 | updated, 145 | 146 | 147 | param_data, 148 | 149 | 150 | 151 | 152 | #{id,jdbcType=BIGINT}, 153 | 154 | 155 | #{itemCatId,jdbcType=BIGINT}, 156 | 157 | 158 | #{created,jdbcType=TIMESTAMP}, 159 | 160 | 161 | #{updated,jdbcType=TIMESTAMP}, 162 | 163 | 164 | #{paramData,jdbcType=LONGVARCHAR}, 165 | 166 | 167 | 168 | 174 | 175 | update tb_item_param 176 | 177 | 178 | id = #{record.id,jdbcType=BIGINT}, 179 | 180 | 181 | item_cat_id = #{record.itemCatId,jdbcType=BIGINT}, 182 | 183 | 184 | created = #{record.created,jdbcType=TIMESTAMP}, 185 | 186 | 187 | updated = #{record.updated,jdbcType=TIMESTAMP}, 188 | 189 | 190 | param_data = #{record.paramData,jdbcType=LONGVARCHAR}, 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | update tb_item_param 199 | set id = #{record.id,jdbcType=BIGINT}, 200 | item_cat_id = #{record.itemCatId,jdbcType=BIGINT}, 201 | created = #{record.created,jdbcType=TIMESTAMP}, 202 | updated = #{record.updated,jdbcType=TIMESTAMP}, 203 | param_data = #{record.paramData,jdbcType=LONGVARCHAR} 204 | 205 | 206 | 207 | 208 | 209 | update tb_item_param 210 | set id = #{record.id,jdbcType=BIGINT}, 211 | item_cat_id = #{record.itemCatId,jdbcType=BIGINT}, 212 | created = #{record.created,jdbcType=TIMESTAMP}, 213 | updated = #{record.updated,jdbcType=TIMESTAMP} 214 | 215 | 216 | 217 | 218 | 219 | update tb_item_param 220 | 221 | 222 | item_cat_id = #{itemCatId,jdbcType=BIGINT}, 223 | 224 | 225 | created = #{created,jdbcType=TIMESTAMP}, 226 | 227 | 228 | updated = #{updated,jdbcType=TIMESTAMP}, 229 | 230 | 231 | param_data = #{paramData,jdbcType=LONGVARCHAR}, 232 | 233 | 234 | where id = #{id,jdbcType=BIGINT} 235 | 236 | 237 | update tb_item_param 238 | set item_cat_id = #{itemCatId,jdbcType=BIGINT}, 239 | created = #{created,jdbcType=TIMESTAMP}, 240 | updated = #{updated,jdbcType=TIMESTAMP}, 241 | param_data = #{paramData,jdbcType=LONGVARCHAR} 242 | where id = #{id,jdbcType=BIGINT} 243 | 244 | 245 | update tb_item_param 246 | set item_cat_id = #{itemCatId,jdbcType=BIGINT}, 247 | created = #{created,jdbcType=TIMESTAMP}, 248 | updated = #{updated,jdbcType=TIMESTAMP} 249 | where id = #{id,jdbcType=BIGINT} 250 | 251 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbOrderItemMapper.java: -------------------------------------------------------------------------------- 1 | package cn.e3.mapper; 2 | 3 | import cn.e3.pojo.TbOrderItem; 4 | import cn.e3.pojo.TbOrderItemExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TbOrderItemMapper { 9 | int countByExample(TbOrderItemExample example); 10 | 11 | int deleteByExample(TbOrderItemExample example); 12 | 13 | int deleteByPrimaryKey(String id); 14 | 15 | int insert(TbOrderItem record); 16 | 17 | int insertSelective(TbOrderItem record); 18 | 19 | List selectByExample(TbOrderItemExample example); 20 | 21 | TbOrderItem selectByPrimaryKey(String id); 22 | 23 | int updateByExampleSelective(@Param("record") TbOrderItem record, @Param("example") TbOrderItemExample example); 24 | 25 | int updateByExample(@Param("record") TbOrderItem record, @Param("example") TbOrderItemExample example); 26 | 27 | int updateByPrimaryKeySelective(TbOrderItem record); 28 | 29 | int updateByPrimaryKey(TbOrderItem record); 30 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbOrderItemMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | and ${criterion.condition} 23 | 24 | 25 | and ${criterion.condition} #{criterion.value} 26 | 27 | 28 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 29 | 30 | 31 | and ${criterion.condition} 32 | 33 | #{listItem} 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | and ${criterion.condition} 52 | 53 | 54 | and ${criterion.condition} #{criterion.value} 55 | 56 | 57 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 58 | 59 | 60 | and ${criterion.condition} 61 | 62 | #{listItem} 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | id, item_id, order_id, num, title, price, total_fee, pic_path 74 | 75 | 89 | 95 | 96 | delete from tb_order_item 97 | where id = #{id,jdbcType=VARCHAR} 98 | 99 | 100 | delete from tb_order_item 101 | 102 | 103 | 104 | 105 | 106 | insert into tb_order_item (id, item_id, order_id, 107 | num, title, price, total_fee, 108 | pic_path) 109 | values (#{id,jdbcType=VARCHAR}, #{itemId,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, 110 | #{num,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{totalFee,jdbcType=BIGINT}, 111 | #{picPath,jdbcType=VARCHAR}) 112 | 113 | 114 | insert into tb_order_item 115 | 116 | 117 | id, 118 | 119 | 120 | item_id, 121 | 122 | 123 | order_id, 124 | 125 | 126 | num, 127 | 128 | 129 | title, 130 | 131 | 132 | price, 133 | 134 | 135 | total_fee, 136 | 137 | 138 | pic_path, 139 | 140 | 141 | 142 | 143 | #{id,jdbcType=VARCHAR}, 144 | 145 | 146 | #{itemId,jdbcType=VARCHAR}, 147 | 148 | 149 | #{orderId,jdbcType=VARCHAR}, 150 | 151 | 152 | #{num,jdbcType=INTEGER}, 153 | 154 | 155 | #{title,jdbcType=VARCHAR}, 156 | 157 | 158 | #{price,jdbcType=BIGINT}, 159 | 160 | 161 | #{totalFee,jdbcType=BIGINT}, 162 | 163 | 164 | #{picPath,jdbcType=VARCHAR}, 165 | 166 | 167 | 168 | 174 | 175 | update tb_order_item 176 | 177 | 178 | id = #{record.id,jdbcType=VARCHAR}, 179 | 180 | 181 | item_id = #{record.itemId,jdbcType=VARCHAR}, 182 | 183 | 184 | order_id = #{record.orderId,jdbcType=VARCHAR}, 185 | 186 | 187 | num = #{record.num,jdbcType=INTEGER}, 188 | 189 | 190 | title = #{record.title,jdbcType=VARCHAR}, 191 | 192 | 193 | price = #{record.price,jdbcType=BIGINT}, 194 | 195 | 196 | total_fee = #{record.totalFee,jdbcType=BIGINT}, 197 | 198 | 199 | pic_path = #{record.picPath,jdbcType=VARCHAR}, 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | update tb_order_item 208 | set id = #{record.id,jdbcType=VARCHAR}, 209 | item_id = #{record.itemId,jdbcType=VARCHAR}, 210 | order_id = #{record.orderId,jdbcType=VARCHAR}, 211 | num = #{record.num,jdbcType=INTEGER}, 212 | title = #{record.title,jdbcType=VARCHAR}, 213 | price = #{record.price,jdbcType=BIGINT}, 214 | total_fee = #{record.totalFee,jdbcType=BIGINT}, 215 | pic_path = #{record.picPath,jdbcType=VARCHAR} 216 | 217 | 218 | 219 | 220 | 221 | update tb_order_item 222 | 223 | 224 | item_id = #{itemId,jdbcType=VARCHAR}, 225 | 226 | 227 | order_id = #{orderId,jdbcType=VARCHAR}, 228 | 229 | 230 | num = #{num,jdbcType=INTEGER}, 231 | 232 | 233 | title = #{title,jdbcType=VARCHAR}, 234 | 235 | 236 | price = #{price,jdbcType=BIGINT}, 237 | 238 | 239 | total_fee = #{totalFee,jdbcType=BIGINT}, 240 | 241 | 242 | pic_path = #{picPath,jdbcType=VARCHAR}, 243 | 244 | 245 | where id = #{id,jdbcType=VARCHAR} 246 | 247 | 248 | update tb_order_item 249 | set item_id = #{itemId,jdbcType=VARCHAR}, 250 | order_id = #{orderId,jdbcType=VARCHAR}, 251 | num = #{num,jdbcType=INTEGER}, 252 | title = #{title,jdbcType=VARCHAR}, 253 | price = #{price,jdbcType=BIGINT}, 254 | total_fee = #{totalFee,jdbcType=BIGINT}, 255 | pic_path = #{picPath,jdbcType=VARCHAR} 256 | where id = #{id,jdbcType=VARCHAR} 257 | 258 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbOrderMapper.java: -------------------------------------------------------------------------------- 1 | package cn.e3.mapper; 2 | 3 | import cn.e3.pojo.TbOrder; 4 | import cn.e3.pojo.TbOrderExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TbOrderMapper { 9 | int countByExample(TbOrderExample example); 10 | 11 | int deleteByExample(TbOrderExample example); 12 | 13 | int deleteByPrimaryKey(String orderId); 14 | 15 | int insert(TbOrder record); 16 | 17 | int insertSelective(TbOrder record); 18 | 19 | List selectByExample(TbOrderExample example); 20 | 21 | TbOrder selectByPrimaryKey(String orderId); 22 | 23 | int updateByExampleSelective(@Param("record") TbOrder record, @Param("example") TbOrderExample example); 24 | 25 | int updateByExample(@Param("record") TbOrder record, @Param("example") TbOrderExample example); 26 | 27 | int updateByPrimaryKeySelective(TbOrder record); 28 | 29 | int updateByPrimaryKey(TbOrder record); 30 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbOrderShippingMapper.java: -------------------------------------------------------------------------------- 1 | package cn.e3.mapper; 2 | 3 | import cn.e3.pojo.TbOrderShipping; 4 | import cn.e3.pojo.TbOrderShippingExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TbOrderShippingMapper { 9 | int countByExample(TbOrderShippingExample example); 10 | 11 | int deleteByExample(TbOrderShippingExample example); 12 | 13 | int deleteByPrimaryKey(String orderId); 14 | 15 | int insert(TbOrderShipping record); 16 | 17 | int insertSelective(TbOrderShipping record); 18 | 19 | List selectByExample(TbOrderShippingExample example); 20 | 21 | TbOrderShipping selectByPrimaryKey(String orderId); 22 | 23 | int updateByExampleSelective(@Param("record") TbOrderShipping record, @Param("example") TbOrderShippingExample example); 24 | 25 | int updateByExample(@Param("record") TbOrderShipping record, @Param("example") TbOrderShippingExample example); 26 | 27 | int updateByPrimaryKeySelective(TbOrderShipping record); 28 | 29 | int updateByPrimaryKey(TbOrderShipping record); 30 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbOrderShippingMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | and ${criterion.condition} 26 | 27 | 28 | and ${criterion.condition} #{criterion.value} 29 | 30 | 31 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 32 | 33 | 34 | and ${criterion.condition} 35 | 36 | #{listItem} 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | and ${criterion.condition} 55 | 56 | 57 | and ${criterion.condition} #{criterion.value} 58 | 59 | 60 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 61 | 62 | 63 | and ${criterion.condition} 64 | 65 | #{listItem} 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | order_id, receiver_name, receiver_phone, receiver_mobile, receiver_state, receiver_city, 77 | receiver_district, receiver_address, receiver_zip, created, updated 78 | 79 | 93 | 99 | 100 | delete from tb_order_shipping 101 | where order_id = #{orderId,jdbcType=VARCHAR} 102 | 103 | 104 | delete from tb_order_shipping 105 | 106 | 107 | 108 | 109 | 110 | insert into tb_order_shipping (order_id, receiver_name, receiver_phone, 111 | receiver_mobile, receiver_state, receiver_city, 112 | receiver_district, receiver_address, receiver_zip, 113 | created, updated) 114 | values (#{orderId,jdbcType=VARCHAR}, #{receiverName,jdbcType=VARCHAR}, #{receiverPhone,jdbcType=VARCHAR}, 115 | #{receiverMobile,jdbcType=VARCHAR}, #{receiverState,jdbcType=VARCHAR}, #{receiverCity,jdbcType=VARCHAR}, 116 | #{receiverDistrict,jdbcType=VARCHAR}, #{receiverAddress,jdbcType=VARCHAR}, #{receiverZip,jdbcType=VARCHAR}, 117 | #{created,jdbcType=TIMESTAMP}, #{updated,jdbcType=TIMESTAMP}) 118 | 119 | 120 | insert into tb_order_shipping 121 | 122 | 123 | order_id, 124 | 125 | 126 | receiver_name, 127 | 128 | 129 | receiver_phone, 130 | 131 | 132 | receiver_mobile, 133 | 134 | 135 | receiver_state, 136 | 137 | 138 | receiver_city, 139 | 140 | 141 | receiver_district, 142 | 143 | 144 | receiver_address, 145 | 146 | 147 | receiver_zip, 148 | 149 | 150 | created, 151 | 152 | 153 | updated, 154 | 155 | 156 | 157 | 158 | #{orderId,jdbcType=VARCHAR}, 159 | 160 | 161 | #{receiverName,jdbcType=VARCHAR}, 162 | 163 | 164 | #{receiverPhone,jdbcType=VARCHAR}, 165 | 166 | 167 | #{receiverMobile,jdbcType=VARCHAR}, 168 | 169 | 170 | #{receiverState,jdbcType=VARCHAR}, 171 | 172 | 173 | #{receiverCity,jdbcType=VARCHAR}, 174 | 175 | 176 | #{receiverDistrict,jdbcType=VARCHAR}, 177 | 178 | 179 | #{receiverAddress,jdbcType=VARCHAR}, 180 | 181 | 182 | #{receiverZip,jdbcType=VARCHAR}, 183 | 184 | 185 | #{created,jdbcType=TIMESTAMP}, 186 | 187 | 188 | #{updated,jdbcType=TIMESTAMP}, 189 | 190 | 191 | 192 | 198 | 199 | update tb_order_shipping 200 | 201 | 202 | order_id = #{record.orderId,jdbcType=VARCHAR}, 203 | 204 | 205 | receiver_name = #{record.receiverName,jdbcType=VARCHAR}, 206 | 207 | 208 | receiver_phone = #{record.receiverPhone,jdbcType=VARCHAR}, 209 | 210 | 211 | receiver_mobile = #{record.receiverMobile,jdbcType=VARCHAR}, 212 | 213 | 214 | receiver_state = #{record.receiverState,jdbcType=VARCHAR}, 215 | 216 | 217 | receiver_city = #{record.receiverCity,jdbcType=VARCHAR}, 218 | 219 | 220 | receiver_district = #{record.receiverDistrict,jdbcType=VARCHAR}, 221 | 222 | 223 | receiver_address = #{record.receiverAddress,jdbcType=VARCHAR}, 224 | 225 | 226 | receiver_zip = #{record.receiverZip,jdbcType=VARCHAR}, 227 | 228 | 229 | created = #{record.created,jdbcType=TIMESTAMP}, 230 | 231 | 232 | updated = #{record.updated,jdbcType=TIMESTAMP}, 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | update tb_order_shipping 241 | set order_id = #{record.orderId,jdbcType=VARCHAR}, 242 | receiver_name = #{record.receiverName,jdbcType=VARCHAR}, 243 | receiver_phone = #{record.receiverPhone,jdbcType=VARCHAR}, 244 | receiver_mobile = #{record.receiverMobile,jdbcType=VARCHAR}, 245 | receiver_state = #{record.receiverState,jdbcType=VARCHAR}, 246 | receiver_city = #{record.receiverCity,jdbcType=VARCHAR}, 247 | receiver_district = #{record.receiverDistrict,jdbcType=VARCHAR}, 248 | receiver_address = #{record.receiverAddress,jdbcType=VARCHAR}, 249 | receiver_zip = #{record.receiverZip,jdbcType=VARCHAR}, 250 | created = #{record.created,jdbcType=TIMESTAMP}, 251 | updated = #{record.updated,jdbcType=TIMESTAMP} 252 | 253 | 254 | 255 | 256 | 257 | update tb_order_shipping 258 | 259 | 260 | receiver_name = #{receiverName,jdbcType=VARCHAR}, 261 | 262 | 263 | receiver_phone = #{receiverPhone,jdbcType=VARCHAR}, 264 | 265 | 266 | receiver_mobile = #{receiverMobile,jdbcType=VARCHAR}, 267 | 268 | 269 | receiver_state = #{receiverState,jdbcType=VARCHAR}, 270 | 271 | 272 | receiver_city = #{receiverCity,jdbcType=VARCHAR}, 273 | 274 | 275 | receiver_district = #{receiverDistrict,jdbcType=VARCHAR}, 276 | 277 | 278 | receiver_address = #{receiverAddress,jdbcType=VARCHAR}, 279 | 280 | 281 | receiver_zip = #{receiverZip,jdbcType=VARCHAR}, 282 | 283 | 284 | created = #{created,jdbcType=TIMESTAMP}, 285 | 286 | 287 | updated = #{updated,jdbcType=TIMESTAMP}, 288 | 289 | 290 | where order_id = #{orderId,jdbcType=VARCHAR} 291 | 292 | 293 | update tb_order_shipping 294 | set receiver_name = #{receiverName,jdbcType=VARCHAR}, 295 | receiver_phone = #{receiverPhone,jdbcType=VARCHAR}, 296 | receiver_mobile = #{receiverMobile,jdbcType=VARCHAR}, 297 | receiver_state = #{receiverState,jdbcType=VARCHAR}, 298 | receiver_city = #{receiverCity,jdbcType=VARCHAR}, 299 | receiver_district = #{receiverDistrict,jdbcType=VARCHAR}, 300 | receiver_address = #{receiverAddress,jdbcType=VARCHAR}, 301 | receiver_zip = #{receiverZip,jdbcType=VARCHAR}, 302 | created = #{created,jdbcType=TIMESTAMP}, 303 | updated = #{updated,jdbcType=TIMESTAMP} 304 | where order_id = #{orderId,jdbcType=VARCHAR} 305 | 306 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbUserMapper.java: -------------------------------------------------------------------------------- 1 | package cn.e3.mapper; 2 | 3 | import cn.e3.pojo.TbUser; 4 | import cn.e3.pojo.TbUserExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface TbUserMapper { 9 | int countByExample(TbUserExample example); 10 | 11 | int deleteByExample(TbUserExample example); 12 | 13 | int deleteByPrimaryKey(Long id); 14 | 15 | int insert(TbUser record); 16 | 17 | int insertSelective(TbUser record); 18 | 19 | List selectByExample(TbUserExample example); 20 | 21 | TbUser selectByPrimaryKey(Long id); 22 | 23 | int updateByExampleSelective(@Param("record") TbUser record, @Param("example") TbUserExample example); 24 | 25 | int updateByExample(@Param("record") TbUser record, @Param("example") TbUserExample example); 26 | 27 | int updateByPrimaryKeySelective(TbUser record); 28 | 29 | int updateByPrimaryKey(TbUser record); 30 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/java/cn/e3/mapper/TbUserMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | and ${criterion.condition} 22 | 23 | 24 | and ${criterion.condition} #{criterion.value} 25 | 26 | 27 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 28 | 29 | 30 | and ${criterion.condition} 31 | 32 | #{listItem} 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | and ${criterion.condition} 51 | 52 | 53 | and ${criterion.condition} #{criterion.value} 54 | 55 | 56 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} 57 | 58 | 59 | and ${criterion.condition} 60 | 61 | #{listItem} 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | id, username, password, phone, email, created, updated 73 | 74 | 88 | 94 | 95 | delete from tb_user 96 | where id = #{id,jdbcType=BIGINT} 97 | 98 | 99 | delete from tb_user 100 | 101 | 102 | 103 | 104 | 105 | insert into tb_user (id, username, password, 106 | phone, email, created, 107 | updated) 108 | values (#{id,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, 109 | #{phone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{created,jdbcType=TIMESTAMP}, 110 | #{updated,jdbcType=TIMESTAMP}) 111 | 112 | 113 | insert into tb_user 114 | 115 | 116 | id, 117 | 118 | 119 | username, 120 | 121 | 122 | password, 123 | 124 | 125 | phone, 126 | 127 | 128 | email, 129 | 130 | 131 | created, 132 | 133 | 134 | updated, 135 | 136 | 137 | 138 | 139 | #{id,jdbcType=BIGINT}, 140 | 141 | 142 | #{username,jdbcType=VARCHAR}, 143 | 144 | 145 | #{password,jdbcType=VARCHAR}, 146 | 147 | 148 | #{phone,jdbcType=VARCHAR}, 149 | 150 | 151 | #{email,jdbcType=VARCHAR}, 152 | 153 | 154 | #{created,jdbcType=TIMESTAMP}, 155 | 156 | 157 | #{updated,jdbcType=TIMESTAMP}, 158 | 159 | 160 | 161 | 167 | 168 | update tb_user 169 | 170 | 171 | id = #{record.id,jdbcType=BIGINT}, 172 | 173 | 174 | username = #{record.username,jdbcType=VARCHAR}, 175 | 176 | 177 | password = #{record.password,jdbcType=VARCHAR}, 178 | 179 | 180 | phone = #{record.phone,jdbcType=VARCHAR}, 181 | 182 | 183 | email = #{record.email,jdbcType=VARCHAR}, 184 | 185 | 186 | created = #{record.created,jdbcType=TIMESTAMP}, 187 | 188 | 189 | updated = #{record.updated,jdbcType=TIMESTAMP}, 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | update tb_user 198 | set id = #{record.id,jdbcType=BIGINT}, 199 | username = #{record.username,jdbcType=VARCHAR}, 200 | password = #{record.password,jdbcType=VARCHAR}, 201 | phone = #{record.phone,jdbcType=VARCHAR}, 202 | email = #{record.email,jdbcType=VARCHAR}, 203 | created = #{record.created,jdbcType=TIMESTAMP}, 204 | updated = #{record.updated,jdbcType=TIMESTAMP} 205 | 206 | 207 | 208 | 209 | 210 | update tb_user 211 | 212 | 213 | username = #{username,jdbcType=VARCHAR}, 214 | 215 | 216 | password = #{password,jdbcType=VARCHAR}, 217 | 218 | 219 | phone = #{phone,jdbcType=VARCHAR}, 220 | 221 | 222 | email = #{email,jdbcType=VARCHAR}, 223 | 224 | 225 | created = #{created,jdbcType=TIMESTAMP}, 226 | 227 | 228 | updated = #{updated,jdbcType=TIMESTAMP}, 229 | 230 | 231 | where id = #{id,jdbcType=BIGINT} 232 | 233 | 234 | update tb_user 235 | set username = #{username,jdbcType=VARCHAR}, 236 | password = #{password,jdbcType=VARCHAR}, 237 | phone = #{phone,jdbcType=VARCHAR}, 238 | email = #{email,jdbcType=VARCHAR}, 239 | created = #{created,jdbcType=TIMESTAMP}, 240 | updated = #{updated,jdbcType=TIMESTAMP} 241 | where id = #{id,jdbcType=BIGINT} 242 | 243 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-dao/src/main/resources/generatorConfig-base.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | 27 | 28 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 45 | 46 | 47 | 48 | 51 | 52 | 53 | 54 | 55 | 56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | cn.e3mall 5 | e3-manager 6 | 0.0.1-SNAPSHOT 7 | 8 | e3-manager-pojo 9 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbContent.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class TbContent { 6 | private Long id; 7 | 8 | private Long categoryId; 9 | 10 | private String title; 11 | 12 | private String subTitle; 13 | 14 | private String titleDesc; 15 | 16 | private String url; 17 | 18 | private String pic; 19 | 20 | private String pic2; 21 | 22 | private Date created; 23 | 24 | private Date updated; 25 | 26 | private String content; 27 | 28 | public Long getId() { 29 | return id; 30 | } 31 | 32 | public void setId(Long id) { 33 | this.id = id; 34 | } 35 | 36 | public Long getCategoryId() { 37 | return categoryId; 38 | } 39 | 40 | public void setCategoryId(Long categoryId) { 41 | this.categoryId = categoryId; 42 | } 43 | 44 | public String getTitle() { 45 | return title; 46 | } 47 | 48 | public void setTitle(String title) { 49 | this.title = title == null ? null : title.trim(); 50 | } 51 | 52 | public String getSubTitle() { 53 | return subTitle; 54 | } 55 | 56 | public void setSubTitle(String subTitle) { 57 | this.subTitle = subTitle == null ? null : subTitle.trim(); 58 | } 59 | 60 | public String getTitleDesc() { 61 | return titleDesc; 62 | } 63 | 64 | public void setTitleDesc(String titleDesc) { 65 | this.titleDesc = titleDesc == null ? null : titleDesc.trim(); 66 | } 67 | 68 | public String getUrl() { 69 | return url; 70 | } 71 | 72 | public void setUrl(String url) { 73 | this.url = url == null ? null : url.trim(); 74 | } 75 | 76 | public String getPic() { 77 | return pic; 78 | } 79 | 80 | public void setPic(String pic) { 81 | this.pic = pic == null ? null : pic.trim(); 82 | } 83 | 84 | public String getPic2() { 85 | return pic2; 86 | } 87 | 88 | public void setPic2(String pic2) { 89 | this.pic2 = pic2 == null ? null : pic2.trim(); 90 | } 91 | 92 | public Date getCreated() { 93 | return created; 94 | } 95 | 96 | public void setCreated(Date created) { 97 | this.created = created; 98 | } 99 | 100 | public Date getUpdated() { 101 | return updated; 102 | } 103 | 104 | public void setUpdated(Date updated) { 105 | this.updated = updated; 106 | } 107 | 108 | public String getContent() { 109 | return content; 110 | } 111 | 112 | public void setContent(String content) { 113 | this.content = content == null ? null : content.trim(); 114 | } 115 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbContentCategory.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class TbContentCategory { 6 | private Long id; 7 | 8 | private Long parentId; 9 | 10 | private String name; 11 | 12 | private Integer status; 13 | 14 | private Integer sortOrder; 15 | 16 | private Boolean isParent; 17 | 18 | private Date created; 19 | 20 | private Date updated; 21 | 22 | public Long getId() { 23 | return id; 24 | } 25 | 26 | public void setId(Long id) { 27 | this.id = id; 28 | } 29 | 30 | public Long getParentId() { 31 | return parentId; 32 | } 33 | 34 | public void setParentId(Long parentId) { 35 | this.parentId = parentId; 36 | } 37 | 38 | public String getName() { 39 | return name; 40 | } 41 | 42 | public void setName(String name) { 43 | this.name = name == null ? null : name.trim(); 44 | } 45 | 46 | public Integer getStatus() { 47 | return status; 48 | } 49 | 50 | public void setStatus(Integer status) { 51 | this.status = status; 52 | } 53 | 54 | public Integer getSortOrder() { 55 | return sortOrder; 56 | } 57 | 58 | public void setSortOrder(Integer sortOrder) { 59 | this.sortOrder = sortOrder; 60 | } 61 | 62 | public Boolean getIsParent() { 63 | return isParent; 64 | } 65 | 66 | public void setIsParent(Boolean isParent) { 67 | this.isParent = isParent; 68 | } 69 | 70 | public Date getCreated() { 71 | return created; 72 | } 73 | 74 | public void setCreated(Date created) { 75 | this.created = created; 76 | } 77 | 78 | public Date getUpdated() { 79 | return updated; 80 | } 81 | 82 | public void setUpdated(Date updated) { 83 | this.updated = updated; 84 | } 85 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbItem.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class TbItem { 6 | private Long id; 7 | 8 | private String title; 9 | 10 | private String sellPoint; 11 | 12 | private Long price; 13 | 14 | private Integer num; 15 | 16 | private String barcode; 17 | 18 | private String image; 19 | 20 | private Long cid; 21 | 22 | private Byte status; 23 | 24 | private Date created; 25 | 26 | private Date updated; 27 | 28 | public Long getId() { 29 | return id; 30 | } 31 | 32 | public void setId(Long id) { 33 | this.id = id; 34 | } 35 | 36 | public String getTitle() { 37 | return title; 38 | } 39 | 40 | public void setTitle(String title) { 41 | this.title = title == null ? null : title.trim(); 42 | } 43 | 44 | public String getSellPoint() { 45 | return sellPoint; 46 | } 47 | 48 | public void setSellPoint(String sellPoint) { 49 | this.sellPoint = sellPoint == null ? null : sellPoint.trim(); 50 | } 51 | 52 | public Long getPrice() { 53 | return price; 54 | } 55 | 56 | public void setPrice(Long price) { 57 | this.price = price; 58 | } 59 | 60 | public Integer getNum() { 61 | return num; 62 | } 63 | 64 | public void setNum(Integer num) { 65 | this.num = num; 66 | } 67 | 68 | public String getBarcode() { 69 | return barcode; 70 | } 71 | 72 | public void setBarcode(String barcode) { 73 | this.barcode = barcode == null ? null : barcode.trim(); 74 | } 75 | 76 | public String getImage() { 77 | return image; 78 | } 79 | 80 | public void setImage(String image) { 81 | this.image = image == null ? null : image.trim(); 82 | } 83 | 84 | public Long getCid() { 85 | return cid; 86 | } 87 | 88 | public void setCid(Long cid) { 89 | this.cid = cid; 90 | } 91 | 92 | public Byte getStatus() { 93 | return status; 94 | } 95 | 96 | public void setStatus(Byte status) { 97 | this.status = status; 98 | } 99 | 100 | public Date getCreated() { 101 | return created; 102 | } 103 | 104 | public void setCreated(Date created) { 105 | this.created = created; 106 | } 107 | 108 | public Date getUpdated() { 109 | return updated; 110 | } 111 | 112 | public void setUpdated(Date updated) { 113 | this.updated = updated; 114 | } 115 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbItemCat.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class TbItemCat { 6 | private Long id; 7 | 8 | private Long parentId; 9 | 10 | private String name; 11 | 12 | private Integer status; 13 | 14 | private Integer sortOrder; 15 | 16 | private Boolean isParent; 17 | 18 | private Date created; 19 | 20 | private Date updated; 21 | 22 | public Long getId() { 23 | return id; 24 | } 25 | 26 | public void setId(Long id) { 27 | this.id = id; 28 | } 29 | 30 | public Long getParentId() { 31 | return parentId; 32 | } 33 | 34 | public void setParentId(Long parentId) { 35 | this.parentId = parentId; 36 | } 37 | 38 | public String getName() { 39 | return name; 40 | } 41 | 42 | public void setName(String name) { 43 | this.name = name == null ? null : name.trim(); 44 | } 45 | 46 | public Integer getStatus() { 47 | return status; 48 | } 49 | 50 | public void setStatus(Integer status) { 51 | this.status = status; 52 | } 53 | 54 | public Integer getSortOrder() { 55 | return sortOrder; 56 | } 57 | 58 | public void setSortOrder(Integer sortOrder) { 59 | this.sortOrder = sortOrder; 60 | } 61 | 62 | public Boolean getIsParent() { 63 | return isParent; 64 | } 65 | 66 | public void setIsParent(Boolean isParent) { 67 | this.isParent = isParent; 68 | } 69 | 70 | public Date getCreated() { 71 | return created; 72 | } 73 | 74 | public void setCreated(Date created) { 75 | this.created = created; 76 | } 77 | 78 | public Date getUpdated() { 79 | return updated; 80 | } 81 | 82 | public void setUpdated(Date updated) { 83 | this.updated = updated; 84 | } 85 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbItemDesc.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class TbItemDesc { 6 | private Long itemId; 7 | 8 | private Date created; 9 | 10 | private Date updated; 11 | 12 | private String itemDesc; 13 | 14 | public Long getItemId() { 15 | return itemId; 16 | } 17 | 18 | public void setItemId(Long itemId) { 19 | this.itemId = itemId; 20 | } 21 | 22 | public Date getCreated() { 23 | return created; 24 | } 25 | 26 | public void setCreated(Date created) { 27 | this.created = created; 28 | } 29 | 30 | public Date getUpdated() { 31 | return updated; 32 | } 33 | 34 | public void setUpdated(Date updated) { 35 | this.updated = updated; 36 | } 37 | 38 | public String getItemDesc() { 39 | return itemDesc; 40 | } 41 | 42 | public void setItemDesc(String itemDesc) { 43 | this.itemDesc = itemDesc == null ? null : itemDesc.trim(); 44 | } 45 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbItemDescExample.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Date; 5 | import java.util.List; 6 | 7 | public class TbItemDescExample { 8 | protected String orderByClause; 9 | 10 | protected boolean distinct; 11 | 12 | protected List oredCriteria; 13 | 14 | public TbItemDescExample() { 15 | oredCriteria = new ArrayList(); 16 | } 17 | 18 | public void setOrderByClause(String orderByClause) { 19 | this.orderByClause = orderByClause; 20 | } 21 | 22 | public String getOrderByClause() { 23 | return orderByClause; 24 | } 25 | 26 | public void setDistinct(boolean distinct) { 27 | this.distinct = distinct; 28 | } 29 | 30 | public boolean isDistinct() { 31 | return distinct; 32 | } 33 | 34 | public List getOredCriteria() { 35 | return oredCriteria; 36 | } 37 | 38 | public void or(Criteria criteria) { 39 | oredCriteria.add(criteria); 40 | } 41 | 42 | public Criteria or() { 43 | Criteria criteria = createCriteriaInternal(); 44 | oredCriteria.add(criteria); 45 | return criteria; 46 | } 47 | 48 | public Criteria createCriteria() { 49 | Criteria criteria = createCriteriaInternal(); 50 | if (oredCriteria.size() == 0) { 51 | oredCriteria.add(criteria); 52 | } 53 | return criteria; 54 | } 55 | 56 | protected Criteria createCriteriaInternal() { 57 | Criteria criteria = new Criteria(); 58 | return criteria; 59 | } 60 | 61 | public void clear() { 62 | oredCriteria.clear(); 63 | orderByClause = null; 64 | distinct = false; 65 | } 66 | 67 | protected abstract static class GeneratedCriteria { 68 | protected List criteria; 69 | 70 | protected GeneratedCriteria() { 71 | super(); 72 | criteria = new ArrayList(); 73 | } 74 | 75 | public boolean isValid() { 76 | return criteria.size() > 0; 77 | } 78 | 79 | public List getAllCriteria() { 80 | return criteria; 81 | } 82 | 83 | public List getCriteria() { 84 | return criteria; 85 | } 86 | 87 | protected void addCriterion(String condition) { 88 | if (condition == null) { 89 | throw new RuntimeException("Value for condition cannot be null"); 90 | } 91 | criteria.add(new Criterion(condition)); 92 | } 93 | 94 | protected void addCriterion(String condition, Object value, String property) { 95 | if (value == null) { 96 | throw new RuntimeException("Value for " + property + " cannot be null"); 97 | } 98 | criteria.add(new Criterion(condition, value)); 99 | } 100 | 101 | protected void addCriterion(String condition, Object value1, Object value2, String property) { 102 | if (value1 == null || value2 == null) { 103 | throw new RuntimeException("Between values for " + property + " cannot be null"); 104 | } 105 | criteria.add(new Criterion(condition, value1, value2)); 106 | } 107 | 108 | public Criteria andItemIdIsNull() { 109 | addCriterion("item_id is null"); 110 | return (Criteria) this; 111 | } 112 | 113 | public Criteria andItemIdIsNotNull() { 114 | addCriterion("item_id is not null"); 115 | return (Criteria) this; 116 | } 117 | 118 | public Criteria andItemIdEqualTo(Long value) { 119 | addCriterion("item_id =", value, "itemId"); 120 | return (Criteria) this; 121 | } 122 | 123 | public Criteria andItemIdNotEqualTo(Long value) { 124 | addCriterion("item_id <>", value, "itemId"); 125 | return (Criteria) this; 126 | } 127 | 128 | public Criteria andItemIdGreaterThan(Long value) { 129 | addCriterion("item_id >", value, "itemId"); 130 | return (Criteria) this; 131 | } 132 | 133 | public Criteria andItemIdGreaterThanOrEqualTo(Long value) { 134 | addCriterion("item_id >=", value, "itemId"); 135 | return (Criteria) this; 136 | } 137 | 138 | public Criteria andItemIdLessThan(Long value) { 139 | addCriterion("item_id <", value, "itemId"); 140 | return (Criteria) this; 141 | } 142 | 143 | public Criteria andItemIdLessThanOrEqualTo(Long value) { 144 | addCriterion("item_id <=", value, "itemId"); 145 | return (Criteria) this; 146 | } 147 | 148 | public Criteria andItemIdIn(List values) { 149 | addCriterion("item_id in", values, "itemId"); 150 | return (Criteria) this; 151 | } 152 | 153 | public Criteria andItemIdNotIn(List values) { 154 | addCriterion("item_id not in", values, "itemId"); 155 | return (Criteria) this; 156 | } 157 | 158 | public Criteria andItemIdBetween(Long value1, Long value2) { 159 | addCriterion("item_id between", value1, value2, "itemId"); 160 | return (Criteria) this; 161 | } 162 | 163 | public Criteria andItemIdNotBetween(Long value1, Long value2) { 164 | addCriterion("item_id not between", value1, value2, "itemId"); 165 | return (Criteria) this; 166 | } 167 | 168 | public Criteria andCreatedIsNull() { 169 | addCriterion("created is null"); 170 | return (Criteria) this; 171 | } 172 | 173 | public Criteria andCreatedIsNotNull() { 174 | addCriterion("created is not null"); 175 | return (Criteria) this; 176 | } 177 | 178 | public Criteria andCreatedEqualTo(Date value) { 179 | addCriterion("created =", value, "created"); 180 | return (Criteria) this; 181 | } 182 | 183 | public Criteria andCreatedNotEqualTo(Date value) { 184 | addCriterion("created <>", value, "created"); 185 | return (Criteria) this; 186 | } 187 | 188 | public Criteria andCreatedGreaterThan(Date value) { 189 | addCriterion("created >", value, "created"); 190 | return (Criteria) this; 191 | } 192 | 193 | public Criteria andCreatedGreaterThanOrEqualTo(Date value) { 194 | addCriterion("created >=", value, "created"); 195 | return (Criteria) this; 196 | } 197 | 198 | public Criteria andCreatedLessThan(Date value) { 199 | addCriterion("created <", value, "created"); 200 | return (Criteria) this; 201 | } 202 | 203 | public Criteria andCreatedLessThanOrEqualTo(Date value) { 204 | addCriterion("created <=", value, "created"); 205 | return (Criteria) this; 206 | } 207 | 208 | public Criteria andCreatedIn(List values) { 209 | addCriterion("created in", values, "created"); 210 | return (Criteria) this; 211 | } 212 | 213 | public Criteria andCreatedNotIn(List values) { 214 | addCriterion("created not in", values, "created"); 215 | return (Criteria) this; 216 | } 217 | 218 | public Criteria andCreatedBetween(Date value1, Date value2) { 219 | addCriterion("created between", value1, value2, "created"); 220 | return (Criteria) this; 221 | } 222 | 223 | public Criteria andCreatedNotBetween(Date value1, Date value2) { 224 | addCriterion("created not between", value1, value2, "created"); 225 | return (Criteria) this; 226 | } 227 | 228 | public Criteria andUpdatedIsNull() { 229 | addCriterion("updated is null"); 230 | return (Criteria) this; 231 | } 232 | 233 | public Criteria andUpdatedIsNotNull() { 234 | addCriterion("updated is not null"); 235 | return (Criteria) this; 236 | } 237 | 238 | public Criteria andUpdatedEqualTo(Date value) { 239 | addCriterion("updated =", value, "updated"); 240 | return (Criteria) this; 241 | } 242 | 243 | public Criteria andUpdatedNotEqualTo(Date value) { 244 | addCriterion("updated <>", value, "updated"); 245 | return (Criteria) this; 246 | } 247 | 248 | public Criteria andUpdatedGreaterThan(Date value) { 249 | addCriterion("updated >", value, "updated"); 250 | return (Criteria) this; 251 | } 252 | 253 | public Criteria andUpdatedGreaterThanOrEqualTo(Date value) { 254 | addCriterion("updated >=", value, "updated"); 255 | return (Criteria) this; 256 | } 257 | 258 | public Criteria andUpdatedLessThan(Date value) { 259 | addCriterion("updated <", value, "updated"); 260 | return (Criteria) this; 261 | } 262 | 263 | public Criteria andUpdatedLessThanOrEqualTo(Date value) { 264 | addCriterion("updated <=", value, "updated"); 265 | return (Criteria) this; 266 | } 267 | 268 | public Criteria andUpdatedIn(List values) { 269 | addCriterion("updated in", values, "updated"); 270 | return (Criteria) this; 271 | } 272 | 273 | public Criteria andUpdatedNotIn(List values) { 274 | addCriterion("updated not in", values, "updated"); 275 | return (Criteria) this; 276 | } 277 | 278 | public Criteria andUpdatedBetween(Date value1, Date value2) { 279 | addCriterion("updated between", value1, value2, "updated"); 280 | return (Criteria) this; 281 | } 282 | 283 | public Criteria andUpdatedNotBetween(Date value1, Date value2) { 284 | addCriterion("updated not between", value1, value2, "updated"); 285 | return (Criteria) this; 286 | } 287 | } 288 | 289 | public static class Criteria extends GeneratedCriteria { 290 | 291 | protected Criteria() { 292 | super(); 293 | } 294 | } 295 | 296 | public static class Criterion { 297 | private String condition; 298 | 299 | private Object value; 300 | 301 | private Object secondValue; 302 | 303 | private boolean noValue; 304 | 305 | private boolean singleValue; 306 | 307 | private boolean betweenValue; 308 | 309 | private boolean listValue; 310 | 311 | private String typeHandler; 312 | 313 | public String getCondition() { 314 | return condition; 315 | } 316 | 317 | public Object getValue() { 318 | return value; 319 | } 320 | 321 | public Object getSecondValue() { 322 | return secondValue; 323 | } 324 | 325 | public boolean isNoValue() { 326 | return noValue; 327 | } 328 | 329 | public boolean isSingleValue() { 330 | return singleValue; 331 | } 332 | 333 | public boolean isBetweenValue() { 334 | return betweenValue; 335 | } 336 | 337 | public boolean isListValue() { 338 | return listValue; 339 | } 340 | 341 | public String getTypeHandler() { 342 | return typeHandler; 343 | } 344 | 345 | protected Criterion(String condition) { 346 | super(); 347 | this.condition = condition; 348 | this.typeHandler = null; 349 | this.noValue = true; 350 | } 351 | 352 | protected Criterion(String condition, Object value, String typeHandler) { 353 | super(); 354 | this.condition = condition; 355 | this.value = value; 356 | this.typeHandler = typeHandler; 357 | if (value instanceof List) { 358 | this.listValue = true; 359 | } else { 360 | this.singleValue = true; 361 | } 362 | } 363 | 364 | protected Criterion(String condition, Object value) { 365 | this(condition, value, null); 366 | } 367 | 368 | protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { 369 | super(); 370 | this.condition = condition; 371 | this.value = value; 372 | this.secondValue = secondValue; 373 | this.typeHandler = typeHandler; 374 | this.betweenValue = true; 375 | } 376 | 377 | protected Criterion(String condition, Object value, Object secondValue) { 378 | this(condition, value, secondValue, null); 379 | } 380 | } 381 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbItemParam.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class TbItemParam { 6 | private Long id; 7 | 8 | private Long itemCatId; 9 | 10 | private Date created; 11 | 12 | private Date updated; 13 | 14 | private String paramData; 15 | 16 | public Long getId() { 17 | return id; 18 | } 19 | 20 | public void setId(Long id) { 21 | this.id = id; 22 | } 23 | 24 | public Long getItemCatId() { 25 | return itemCatId; 26 | } 27 | 28 | public void setItemCatId(Long itemCatId) { 29 | this.itemCatId = itemCatId; 30 | } 31 | 32 | public Date getCreated() { 33 | return created; 34 | } 35 | 36 | public void setCreated(Date created) { 37 | this.created = created; 38 | } 39 | 40 | public Date getUpdated() { 41 | return updated; 42 | } 43 | 44 | public void setUpdated(Date updated) { 45 | this.updated = updated; 46 | } 47 | 48 | public String getParamData() { 49 | return paramData; 50 | } 51 | 52 | public void setParamData(String paramData) { 53 | this.paramData = paramData == null ? null : paramData.trim(); 54 | } 55 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbItemParamExample.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Date; 5 | import java.util.List; 6 | 7 | public class TbItemParamExample { 8 | protected String orderByClause; 9 | 10 | protected boolean distinct; 11 | 12 | protected List oredCriteria; 13 | 14 | public TbItemParamExample() { 15 | oredCriteria = new ArrayList(); 16 | } 17 | 18 | public void setOrderByClause(String orderByClause) { 19 | this.orderByClause = orderByClause; 20 | } 21 | 22 | public String getOrderByClause() { 23 | return orderByClause; 24 | } 25 | 26 | public void setDistinct(boolean distinct) { 27 | this.distinct = distinct; 28 | } 29 | 30 | public boolean isDistinct() { 31 | return distinct; 32 | } 33 | 34 | public List getOredCriteria() { 35 | return oredCriteria; 36 | } 37 | 38 | public void or(Criteria criteria) { 39 | oredCriteria.add(criteria); 40 | } 41 | 42 | public Criteria or() { 43 | Criteria criteria = createCriteriaInternal(); 44 | oredCriteria.add(criteria); 45 | return criteria; 46 | } 47 | 48 | public Criteria createCriteria() { 49 | Criteria criteria = createCriteriaInternal(); 50 | if (oredCriteria.size() == 0) { 51 | oredCriteria.add(criteria); 52 | } 53 | return criteria; 54 | } 55 | 56 | protected Criteria createCriteriaInternal() { 57 | Criteria criteria = new Criteria(); 58 | return criteria; 59 | } 60 | 61 | public void clear() { 62 | oredCriteria.clear(); 63 | orderByClause = null; 64 | distinct = false; 65 | } 66 | 67 | protected abstract static class GeneratedCriteria { 68 | protected List criteria; 69 | 70 | protected GeneratedCriteria() { 71 | super(); 72 | criteria = new ArrayList(); 73 | } 74 | 75 | public boolean isValid() { 76 | return criteria.size() > 0; 77 | } 78 | 79 | public List getAllCriteria() { 80 | return criteria; 81 | } 82 | 83 | public List getCriteria() { 84 | return criteria; 85 | } 86 | 87 | protected void addCriterion(String condition) { 88 | if (condition == null) { 89 | throw new RuntimeException("Value for condition cannot be null"); 90 | } 91 | criteria.add(new Criterion(condition)); 92 | } 93 | 94 | protected void addCriterion(String condition, Object value, String property) { 95 | if (value == null) { 96 | throw new RuntimeException("Value for " + property + " cannot be null"); 97 | } 98 | criteria.add(new Criterion(condition, value)); 99 | } 100 | 101 | protected void addCriterion(String condition, Object value1, Object value2, String property) { 102 | if (value1 == null || value2 == null) { 103 | throw new RuntimeException("Between values for " + property + " cannot be null"); 104 | } 105 | criteria.add(new Criterion(condition, value1, value2)); 106 | } 107 | 108 | public Criteria andIdIsNull() { 109 | addCriterion("id is null"); 110 | return (Criteria) this; 111 | } 112 | 113 | public Criteria andIdIsNotNull() { 114 | addCriterion("id is not null"); 115 | return (Criteria) this; 116 | } 117 | 118 | public Criteria andIdEqualTo(Long value) { 119 | addCriterion("id =", value, "id"); 120 | return (Criteria) this; 121 | } 122 | 123 | public Criteria andIdNotEqualTo(Long value) { 124 | addCriterion("id <>", value, "id"); 125 | return (Criteria) this; 126 | } 127 | 128 | public Criteria andIdGreaterThan(Long value) { 129 | addCriterion("id >", value, "id"); 130 | return (Criteria) this; 131 | } 132 | 133 | public Criteria andIdGreaterThanOrEqualTo(Long value) { 134 | addCriterion("id >=", value, "id"); 135 | return (Criteria) this; 136 | } 137 | 138 | public Criteria andIdLessThan(Long value) { 139 | addCriterion("id <", value, "id"); 140 | return (Criteria) this; 141 | } 142 | 143 | public Criteria andIdLessThanOrEqualTo(Long value) { 144 | addCriterion("id <=", value, "id"); 145 | return (Criteria) this; 146 | } 147 | 148 | public Criteria andIdIn(List values) { 149 | addCriterion("id in", values, "id"); 150 | return (Criteria) this; 151 | } 152 | 153 | public Criteria andIdNotIn(List values) { 154 | addCriterion("id not in", values, "id"); 155 | return (Criteria) this; 156 | } 157 | 158 | public Criteria andIdBetween(Long value1, Long value2) { 159 | addCriterion("id between", value1, value2, "id"); 160 | return (Criteria) this; 161 | } 162 | 163 | public Criteria andIdNotBetween(Long value1, Long value2) { 164 | addCriterion("id not between", value1, value2, "id"); 165 | return (Criteria) this; 166 | } 167 | 168 | public Criteria andItemCatIdIsNull() { 169 | addCriterion("item_cat_id is null"); 170 | return (Criteria) this; 171 | } 172 | 173 | public Criteria andItemCatIdIsNotNull() { 174 | addCriterion("item_cat_id is not null"); 175 | return (Criteria) this; 176 | } 177 | 178 | public Criteria andItemCatIdEqualTo(Long value) { 179 | addCriterion("item_cat_id =", value, "itemCatId"); 180 | return (Criteria) this; 181 | } 182 | 183 | public Criteria andItemCatIdNotEqualTo(Long value) { 184 | addCriterion("item_cat_id <>", value, "itemCatId"); 185 | return (Criteria) this; 186 | } 187 | 188 | public Criteria andItemCatIdGreaterThan(Long value) { 189 | addCriterion("item_cat_id >", value, "itemCatId"); 190 | return (Criteria) this; 191 | } 192 | 193 | public Criteria andItemCatIdGreaterThanOrEqualTo(Long value) { 194 | addCriterion("item_cat_id >=", value, "itemCatId"); 195 | return (Criteria) this; 196 | } 197 | 198 | public Criteria andItemCatIdLessThan(Long value) { 199 | addCriterion("item_cat_id <", value, "itemCatId"); 200 | return (Criteria) this; 201 | } 202 | 203 | public Criteria andItemCatIdLessThanOrEqualTo(Long value) { 204 | addCriterion("item_cat_id <=", value, "itemCatId"); 205 | return (Criteria) this; 206 | } 207 | 208 | public Criteria andItemCatIdIn(List values) { 209 | addCriterion("item_cat_id in", values, "itemCatId"); 210 | return (Criteria) this; 211 | } 212 | 213 | public Criteria andItemCatIdNotIn(List values) { 214 | addCriterion("item_cat_id not in", values, "itemCatId"); 215 | return (Criteria) this; 216 | } 217 | 218 | public Criteria andItemCatIdBetween(Long value1, Long value2) { 219 | addCriterion("item_cat_id between", value1, value2, "itemCatId"); 220 | return (Criteria) this; 221 | } 222 | 223 | public Criteria andItemCatIdNotBetween(Long value1, Long value2) { 224 | addCriterion("item_cat_id not between", value1, value2, "itemCatId"); 225 | return (Criteria) this; 226 | } 227 | 228 | public Criteria andCreatedIsNull() { 229 | addCriterion("created is null"); 230 | return (Criteria) this; 231 | } 232 | 233 | public Criteria andCreatedIsNotNull() { 234 | addCriterion("created is not null"); 235 | return (Criteria) this; 236 | } 237 | 238 | public Criteria andCreatedEqualTo(Date value) { 239 | addCriterion("created =", value, "created"); 240 | return (Criteria) this; 241 | } 242 | 243 | public Criteria andCreatedNotEqualTo(Date value) { 244 | addCriterion("created <>", value, "created"); 245 | return (Criteria) this; 246 | } 247 | 248 | public Criteria andCreatedGreaterThan(Date value) { 249 | addCriterion("created >", value, "created"); 250 | return (Criteria) this; 251 | } 252 | 253 | public Criteria andCreatedGreaterThanOrEqualTo(Date value) { 254 | addCriterion("created >=", value, "created"); 255 | return (Criteria) this; 256 | } 257 | 258 | public Criteria andCreatedLessThan(Date value) { 259 | addCriterion("created <", value, "created"); 260 | return (Criteria) this; 261 | } 262 | 263 | public Criteria andCreatedLessThanOrEqualTo(Date value) { 264 | addCriterion("created <=", value, "created"); 265 | return (Criteria) this; 266 | } 267 | 268 | public Criteria andCreatedIn(List values) { 269 | addCriterion("created in", values, "created"); 270 | return (Criteria) this; 271 | } 272 | 273 | public Criteria andCreatedNotIn(List values) { 274 | addCriterion("created not in", values, "created"); 275 | return (Criteria) this; 276 | } 277 | 278 | public Criteria andCreatedBetween(Date value1, Date value2) { 279 | addCriterion("created between", value1, value2, "created"); 280 | return (Criteria) this; 281 | } 282 | 283 | public Criteria andCreatedNotBetween(Date value1, Date value2) { 284 | addCriterion("created not between", value1, value2, "created"); 285 | return (Criteria) this; 286 | } 287 | 288 | public Criteria andUpdatedIsNull() { 289 | addCriterion("updated is null"); 290 | return (Criteria) this; 291 | } 292 | 293 | public Criteria andUpdatedIsNotNull() { 294 | addCriterion("updated is not null"); 295 | return (Criteria) this; 296 | } 297 | 298 | public Criteria andUpdatedEqualTo(Date value) { 299 | addCriterion("updated =", value, "updated"); 300 | return (Criteria) this; 301 | } 302 | 303 | public Criteria andUpdatedNotEqualTo(Date value) { 304 | addCriterion("updated <>", value, "updated"); 305 | return (Criteria) this; 306 | } 307 | 308 | public Criteria andUpdatedGreaterThan(Date value) { 309 | addCriterion("updated >", value, "updated"); 310 | return (Criteria) this; 311 | } 312 | 313 | public Criteria andUpdatedGreaterThanOrEqualTo(Date value) { 314 | addCriterion("updated >=", value, "updated"); 315 | return (Criteria) this; 316 | } 317 | 318 | public Criteria andUpdatedLessThan(Date value) { 319 | addCriterion("updated <", value, "updated"); 320 | return (Criteria) this; 321 | } 322 | 323 | public Criteria andUpdatedLessThanOrEqualTo(Date value) { 324 | addCriterion("updated <=", value, "updated"); 325 | return (Criteria) this; 326 | } 327 | 328 | public Criteria andUpdatedIn(List values) { 329 | addCriterion("updated in", values, "updated"); 330 | return (Criteria) this; 331 | } 332 | 333 | public Criteria andUpdatedNotIn(List values) { 334 | addCriterion("updated not in", values, "updated"); 335 | return (Criteria) this; 336 | } 337 | 338 | public Criteria andUpdatedBetween(Date value1, Date value2) { 339 | addCriterion("updated between", value1, value2, "updated"); 340 | return (Criteria) this; 341 | } 342 | 343 | public Criteria andUpdatedNotBetween(Date value1, Date value2) { 344 | addCriterion("updated not between", value1, value2, "updated"); 345 | return (Criteria) this; 346 | } 347 | } 348 | 349 | public static class Criteria extends GeneratedCriteria { 350 | 351 | protected Criteria() { 352 | super(); 353 | } 354 | } 355 | 356 | public static class Criterion { 357 | private String condition; 358 | 359 | private Object value; 360 | 361 | private Object secondValue; 362 | 363 | private boolean noValue; 364 | 365 | private boolean singleValue; 366 | 367 | private boolean betweenValue; 368 | 369 | private boolean listValue; 370 | 371 | private String typeHandler; 372 | 373 | public String getCondition() { 374 | return condition; 375 | } 376 | 377 | public Object getValue() { 378 | return value; 379 | } 380 | 381 | public Object getSecondValue() { 382 | return secondValue; 383 | } 384 | 385 | public boolean isNoValue() { 386 | return noValue; 387 | } 388 | 389 | public boolean isSingleValue() { 390 | return singleValue; 391 | } 392 | 393 | public boolean isBetweenValue() { 394 | return betweenValue; 395 | } 396 | 397 | public boolean isListValue() { 398 | return listValue; 399 | } 400 | 401 | public String getTypeHandler() { 402 | return typeHandler; 403 | } 404 | 405 | protected Criterion(String condition) { 406 | super(); 407 | this.condition = condition; 408 | this.typeHandler = null; 409 | this.noValue = true; 410 | } 411 | 412 | protected Criterion(String condition, Object value, String typeHandler) { 413 | super(); 414 | this.condition = condition; 415 | this.value = value; 416 | this.typeHandler = typeHandler; 417 | if (value instanceof List) { 418 | this.listValue = true; 419 | } else { 420 | this.singleValue = true; 421 | } 422 | } 423 | 424 | protected Criterion(String condition, Object value) { 425 | this(condition, value, null); 426 | } 427 | 428 | protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { 429 | super(); 430 | this.condition = condition; 431 | this.value = value; 432 | this.secondValue = secondValue; 433 | this.typeHandler = typeHandler; 434 | this.betweenValue = true; 435 | } 436 | 437 | protected Criterion(String condition, Object value, Object secondValue) { 438 | this(condition, value, secondValue, null); 439 | } 440 | } 441 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbItemParamItem.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class TbItemParamItem { 6 | private Long id; 7 | 8 | private Long itemId; 9 | 10 | private Date created; 11 | 12 | private Date updated; 13 | 14 | private String paramData; 15 | 16 | public Long getId() { 17 | return id; 18 | } 19 | 20 | public void setId(Long id) { 21 | this.id = id; 22 | } 23 | 24 | public Long getItemId() { 25 | return itemId; 26 | } 27 | 28 | public void setItemId(Long itemId) { 29 | this.itemId = itemId; 30 | } 31 | 32 | public Date getCreated() { 33 | return created; 34 | } 35 | 36 | public void setCreated(Date created) { 37 | this.created = created; 38 | } 39 | 40 | public Date getUpdated() { 41 | return updated; 42 | } 43 | 44 | public void setUpdated(Date updated) { 45 | this.updated = updated; 46 | } 47 | 48 | public String getParamData() { 49 | return paramData; 50 | } 51 | 52 | public void setParamData(String paramData) { 53 | this.paramData = paramData == null ? null : paramData.trim(); 54 | } 55 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbItemParamItemExample.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Date; 5 | import java.util.List; 6 | 7 | public class TbItemParamItemExample { 8 | protected String orderByClause; 9 | 10 | protected boolean distinct; 11 | 12 | protected List oredCriteria; 13 | 14 | public TbItemParamItemExample() { 15 | oredCriteria = new ArrayList(); 16 | } 17 | 18 | public void setOrderByClause(String orderByClause) { 19 | this.orderByClause = orderByClause; 20 | } 21 | 22 | public String getOrderByClause() { 23 | return orderByClause; 24 | } 25 | 26 | public void setDistinct(boolean distinct) { 27 | this.distinct = distinct; 28 | } 29 | 30 | public boolean isDistinct() { 31 | return distinct; 32 | } 33 | 34 | public List getOredCriteria() { 35 | return oredCriteria; 36 | } 37 | 38 | public void or(Criteria criteria) { 39 | oredCriteria.add(criteria); 40 | } 41 | 42 | public Criteria or() { 43 | Criteria criteria = createCriteriaInternal(); 44 | oredCriteria.add(criteria); 45 | return criteria; 46 | } 47 | 48 | public Criteria createCriteria() { 49 | Criteria criteria = createCriteriaInternal(); 50 | if (oredCriteria.size() == 0) { 51 | oredCriteria.add(criteria); 52 | } 53 | return criteria; 54 | } 55 | 56 | protected Criteria createCriteriaInternal() { 57 | Criteria criteria = new Criteria(); 58 | return criteria; 59 | } 60 | 61 | public void clear() { 62 | oredCriteria.clear(); 63 | orderByClause = null; 64 | distinct = false; 65 | } 66 | 67 | protected abstract static class GeneratedCriteria { 68 | protected List criteria; 69 | 70 | protected GeneratedCriteria() { 71 | super(); 72 | criteria = new ArrayList(); 73 | } 74 | 75 | public boolean isValid() { 76 | return criteria.size() > 0; 77 | } 78 | 79 | public List getAllCriteria() { 80 | return criteria; 81 | } 82 | 83 | public List getCriteria() { 84 | return criteria; 85 | } 86 | 87 | protected void addCriterion(String condition) { 88 | if (condition == null) { 89 | throw new RuntimeException("Value for condition cannot be null"); 90 | } 91 | criteria.add(new Criterion(condition)); 92 | } 93 | 94 | protected void addCriterion(String condition, Object value, String property) { 95 | if (value == null) { 96 | throw new RuntimeException("Value for " + property + " cannot be null"); 97 | } 98 | criteria.add(new Criterion(condition, value)); 99 | } 100 | 101 | protected void addCriterion(String condition, Object value1, Object value2, String property) { 102 | if (value1 == null || value2 == null) { 103 | throw new RuntimeException("Between values for " + property + " cannot be null"); 104 | } 105 | criteria.add(new Criterion(condition, value1, value2)); 106 | } 107 | 108 | public Criteria andIdIsNull() { 109 | addCriterion("id is null"); 110 | return (Criteria) this; 111 | } 112 | 113 | public Criteria andIdIsNotNull() { 114 | addCriterion("id is not null"); 115 | return (Criteria) this; 116 | } 117 | 118 | public Criteria andIdEqualTo(Long value) { 119 | addCriterion("id =", value, "id"); 120 | return (Criteria) this; 121 | } 122 | 123 | public Criteria andIdNotEqualTo(Long value) { 124 | addCriterion("id <>", value, "id"); 125 | return (Criteria) this; 126 | } 127 | 128 | public Criteria andIdGreaterThan(Long value) { 129 | addCriterion("id >", value, "id"); 130 | return (Criteria) this; 131 | } 132 | 133 | public Criteria andIdGreaterThanOrEqualTo(Long value) { 134 | addCriterion("id >=", value, "id"); 135 | return (Criteria) this; 136 | } 137 | 138 | public Criteria andIdLessThan(Long value) { 139 | addCriterion("id <", value, "id"); 140 | return (Criteria) this; 141 | } 142 | 143 | public Criteria andIdLessThanOrEqualTo(Long value) { 144 | addCriterion("id <=", value, "id"); 145 | return (Criteria) this; 146 | } 147 | 148 | public Criteria andIdIn(List values) { 149 | addCriterion("id in", values, "id"); 150 | return (Criteria) this; 151 | } 152 | 153 | public Criteria andIdNotIn(List values) { 154 | addCriterion("id not in", values, "id"); 155 | return (Criteria) this; 156 | } 157 | 158 | public Criteria andIdBetween(Long value1, Long value2) { 159 | addCriterion("id between", value1, value2, "id"); 160 | return (Criteria) this; 161 | } 162 | 163 | public Criteria andIdNotBetween(Long value1, Long value2) { 164 | addCriterion("id not between", value1, value2, "id"); 165 | return (Criteria) this; 166 | } 167 | 168 | public Criteria andItemIdIsNull() { 169 | addCriterion("item_id is null"); 170 | return (Criteria) this; 171 | } 172 | 173 | public Criteria andItemIdIsNotNull() { 174 | addCriterion("item_id is not null"); 175 | return (Criteria) this; 176 | } 177 | 178 | public Criteria andItemIdEqualTo(Long value) { 179 | addCriterion("item_id =", value, "itemId"); 180 | return (Criteria) this; 181 | } 182 | 183 | public Criteria andItemIdNotEqualTo(Long value) { 184 | addCriterion("item_id <>", value, "itemId"); 185 | return (Criteria) this; 186 | } 187 | 188 | public Criteria andItemIdGreaterThan(Long value) { 189 | addCriterion("item_id >", value, "itemId"); 190 | return (Criteria) this; 191 | } 192 | 193 | public Criteria andItemIdGreaterThanOrEqualTo(Long value) { 194 | addCriterion("item_id >=", value, "itemId"); 195 | return (Criteria) this; 196 | } 197 | 198 | public Criteria andItemIdLessThan(Long value) { 199 | addCriterion("item_id <", value, "itemId"); 200 | return (Criteria) this; 201 | } 202 | 203 | public Criteria andItemIdLessThanOrEqualTo(Long value) { 204 | addCriterion("item_id <=", value, "itemId"); 205 | return (Criteria) this; 206 | } 207 | 208 | public Criteria andItemIdIn(List values) { 209 | addCriterion("item_id in", values, "itemId"); 210 | return (Criteria) this; 211 | } 212 | 213 | public Criteria andItemIdNotIn(List values) { 214 | addCriterion("item_id not in", values, "itemId"); 215 | return (Criteria) this; 216 | } 217 | 218 | public Criteria andItemIdBetween(Long value1, Long value2) { 219 | addCriterion("item_id between", value1, value2, "itemId"); 220 | return (Criteria) this; 221 | } 222 | 223 | public Criteria andItemIdNotBetween(Long value1, Long value2) { 224 | addCriterion("item_id not between", value1, value2, "itemId"); 225 | return (Criteria) this; 226 | } 227 | 228 | public Criteria andCreatedIsNull() { 229 | addCriterion("created is null"); 230 | return (Criteria) this; 231 | } 232 | 233 | public Criteria andCreatedIsNotNull() { 234 | addCriterion("created is not null"); 235 | return (Criteria) this; 236 | } 237 | 238 | public Criteria andCreatedEqualTo(Date value) { 239 | addCriterion("created =", value, "created"); 240 | return (Criteria) this; 241 | } 242 | 243 | public Criteria andCreatedNotEqualTo(Date value) { 244 | addCriterion("created <>", value, "created"); 245 | return (Criteria) this; 246 | } 247 | 248 | public Criteria andCreatedGreaterThan(Date value) { 249 | addCriterion("created >", value, "created"); 250 | return (Criteria) this; 251 | } 252 | 253 | public Criteria andCreatedGreaterThanOrEqualTo(Date value) { 254 | addCriterion("created >=", value, "created"); 255 | return (Criteria) this; 256 | } 257 | 258 | public Criteria andCreatedLessThan(Date value) { 259 | addCriterion("created <", value, "created"); 260 | return (Criteria) this; 261 | } 262 | 263 | public Criteria andCreatedLessThanOrEqualTo(Date value) { 264 | addCriterion("created <=", value, "created"); 265 | return (Criteria) this; 266 | } 267 | 268 | public Criteria andCreatedIn(List values) { 269 | addCriterion("created in", values, "created"); 270 | return (Criteria) this; 271 | } 272 | 273 | public Criteria andCreatedNotIn(List values) { 274 | addCriterion("created not in", values, "created"); 275 | return (Criteria) this; 276 | } 277 | 278 | public Criteria andCreatedBetween(Date value1, Date value2) { 279 | addCriterion("created between", value1, value2, "created"); 280 | return (Criteria) this; 281 | } 282 | 283 | public Criteria andCreatedNotBetween(Date value1, Date value2) { 284 | addCriterion("created not between", value1, value2, "created"); 285 | return (Criteria) this; 286 | } 287 | 288 | public Criteria andUpdatedIsNull() { 289 | addCriterion("updated is null"); 290 | return (Criteria) this; 291 | } 292 | 293 | public Criteria andUpdatedIsNotNull() { 294 | addCriterion("updated is not null"); 295 | return (Criteria) this; 296 | } 297 | 298 | public Criteria andUpdatedEqualTo(Date value) { 299 | addCriterion("updated =", value, "updated"); 300 | return (Criteria) this; 301 | } 302 | 303 | public Criteria andUpdatedNotEqualTo(Date value) { 304 | addCriterion("updated <>", value, "updated"); 305 | return (Criteria) this; 306 | } 307 | 308 | public Criteria andUpdatedGreaterThan(Date value) { 309 | addCriterion("updated >", value, "updated"); 310 | return (Criteria) this; 311 | } 312 | 313 | public Criteria andUpdatedGreaterThanOrEqualTo(Date value) { 314 | addCriterion("updated >=", value, "updated"); 315 | return (Criteria) this; 316 | } 317 | 318 | public Criteria andUpdatedLessThan(Date value) { 319 | addCriterion("updated <", value, "updated"); 320 | return (Criteria) this; 321 | } 322 | 323 | public Criteria andUpdatedLessThanOrEqualTo(Date value) { 324 | addCriterion("updated <=", value, "updated"); 325 | return (Criteria) this; 326 | } 327 | 328 | public Criteria andUpdatedIn(List values) { 329 | addCriterion("updated in", values, "updated"); 330 | return (Criteria) this; 331 | } 332 | 333 | public Criteria andUpdatedNotIn(List values) { 334 | addCriterion("updated not in", values, "updated"); 335 | return (Criteria) this; 336 | } 337 | 338 | public Criteria andUpdatedBetween(Date value1, Date value2) { 339 | addCriterion("updated between", value1, value2, "updated"); 340 | return (Criteria) this; 341 | } 342 | 343 | public Criteria andUpdatedNotBetween(Date value1, Date value2) { 344 | addCriterion("updated not between", value1, value2, "updated"); 345 | return (Criteria) this; 346 | } 347 | } 348 | 349 | public static class Criteria extends GeneratedCriteria { 350 | 351 | protected Criteria() { 352 | super(); 353 | } 354 | } 355 | 356 | public static class Criterion { 357 | private String condition; 358 | 359 | private Object value; 360 | 361 | private Object secondValue; 362 | 363 | private boolean noValue; 364 | 365 | private boolean singleValue; 366 | 367 | private boolean betweenValue; 368 | 369 | private boolean listValue; 370 | 371 | private String typeHandler; 372 | 373 | public String getCondition() { 374 | return condition; 375 | } 376 | 377 | public Object getValue() { 378 | return value; 379 | } 380 | 381 | public Object getSecondValue() { 382 | return secondValue; 383 | } 384 | 385 | public boolean isNoValue() { 386 | return noValue; 387 | } 388 | 389 | public boolean isSingleValue() { 390 | return singleValue; 391 | } 392 | 393 | public boolean isBetweenValue() { 394 | return betweenValue; 395 | } 396 | 397 | public boolean isListValue() { 398 | return listValue; 399 | } 400 | 401 | public String getTypeHandler() { 402 | return typeHandler; 403 | } 404 | 405 | protected Criterion(String condition) { 406 | super(); 407 | this.condition = condition; 408 | this.typeHandler = null; 409 | this.noValue = true; 410 | } 411 | 412 | protected Criterion(String condition, Object value, String typeHandler) { 413 | super(); 414 | this.condition = condition; 415 | this.value = value; 416 | this.typeHandler = typeHandler; 417 | if (value instanceof List) { 418 | this.listValue = true; 419 | } else { 420 | this.singleValue = true; 421 | } 422 | } 423 | 424 | protected Criterion(String condition, Object value) { 425 | this(condition, value, null); 426 | } 427 | 428 | protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { 429 | super(); 430 | this.condition = condition; 431 | this.value = value; 432 | this.secondValue = secondValue; 433 | this.typeHandler = typeHandler; 434 | this.betweenValue = true; 435 | } 436 | 437 | protected Criterion(String condition, Object value, Object secondValue) { 438 | this(condition, value, secondValue, null); 439 | } 440 | } 441 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbOrder.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class TbOrder { 6 | private String orderId; 7 | 8 | private String payment; 9 | 10 | private Integer paymentType; 11 | 12 | private String postFee; 13 | 14 | private Integer status; 15 | 16 | private Date createTime; 17 | 18 | private Date updateTime; 19 | 20 | private Date paymentTime; 21 | 22 | private Date consignTime; 23 | 24 | private Date endTime; 25 | 26 | private Date closeTime; 27 | 28 | private String shippingName; 29 | 30 | private String shippingCode; 31 | 32 | private Long userId; 33 | 34 | private String buyerMessage; 35 | 36 | private String buyerNick; 37 | 38 | private Integer buyerRate; 39 | 40 | public String getOrderId() { 41 | return orderId; 42 | } 43 | 44 | public void setOrderId(String orderId) { 45 | this.orderId = orderId == null ? null : orderId.trim(); 46 | } 47 | 48 | public String getPayment() { 49 | return payment; 50 | } 51 | 52 | public void setPayment(String payment) { 53 | this.payment = payment == null ? null : payment.trim(); 54 | } 55 | 56 | public Integer getPaymentType() { 57 | return paymentType; 58 | } 59 | 60 | public void setPaymentType(Integer paymentType) { 61 | this.paymentType = paymentType; 62 | } 63 | 64 | public String getPostFee() { 65 | return postFee; 66 | } 67 | 68 | public void setPostFee(String postFee) { 69 | this.postFee = postFee == null ? null : postFee.trim(); 70 | } 71 | 72 | public Integer getStatus() { 73 | return status; 74 | } 75 | 76 | public void setStatus(Integer status) { 77 | this.status = status; 78 | } 79 | 80 | public Date getCreateTime() { 81 | return createTime; 82 | } 83 | 84 | public void setCreateTime(Date createTime) { 85 | this.createTime = createTime; 86 | } 87 | 88 | public Date getUpdateTime() { 89 | return updateTime; 90 | } 91 | 92 | public void setUpdateTime(Date updateTime) { 93 | this.updateTime = updateTime; 94 | } 95 | 96 | public Date getPaymentTime() { 97 | return paymentTime; 98 | } 99 | 100 | public void setPaymentTime(Date paymentTime) { 101 | this.paymentTime = paymentTime; 102 | } 103 | 104 | public Date getConsignTime() { 105 | return consignTime; 106 | } 107 | 108 | public void setConsignTime(Date consignTime) { 109 | this.consignTime = consignTime; 110 | } 111 | 112 | public Date getEndTime() { 113 | return endTime; 114 | } 115 | 116 | public void setEndTime(Date endTime) { 117 | this.endTime = endTime; 118 | } 119 | 120 | public Date getCloseTime() { 121 | return closeTime; 122 | } 123 | 124 | public void setCloseTime(Date closeTime) { 125 | this.closeTime = closeTime; 126 | } 127 | 128 | public String getShippingName() { 129 | return shippingName; 130 | } 131 | 132 | public void setShippingName(String shippingName) { 133 | this.shippingName = shippingName == null ? null : shippingName.trim(); 134 | } 135 | 136 | public String getShippingCode() { 137 | return shippingCode; 138 | } 139 | 140 | public void setShippingCode(String shippingCode) { 141 | this.shippingCode = shippingCode == null ? null : shippingCode.trim(); 142 | } 143 | 144 | public Long getUserId() { 145 | return userId; 146 | } 147 | 148 | public void setUserId(Long userId) { 149 | this.userId = userId; 150 | } 151 | 152 | public String getBuyerMessage() { 153 | return buyerMessage; 154 | } 155 | 156 | public void setBuyerMessage(String buyerMessage) { 157 | this.buyerMessage = buyerMessage == null ? null : buyerMessage.trim(); 158 | } 159 | 160 | public String getBuyerNick() { 161 | return buyerNick; 162 | } 163 | 164 | public void setBuyerNick(String buyerNick) { 165 | this.buyerNick = buyerNick == null ? null : buyerNick.trim(); 166 | } 167 | 168 | public Integer getBuyerRate() { 169 | return buyerRate; 170 | } 171 | 172 | public void setBuyerRate(Integer buyerRate) { 173 | this.buyerRate = buyerRate; 174 | } 175 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbOrderItem.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | public class TbOrderItem { 4 | private String id; 5 | 6 | private String itemId; 7 | 8 | private String orderId; 9 | 10 | private Integer num; 11 | 12 | private String title; 13 | 14 | private Long price; 15 | 16 | private Long totalFee; 17 | 18 | private String picPath; 19 | 20 | public String getId() { 21 | return id; 22 | } 23 | 24 | public void setId(String id) { 25 | this.id = id == null ? null : id.trim(); 26 | } 27 | 28 | public String getItemId() { 29 | return itemId; 30 | } 31 | 32 | public void setItemId(String itemId) { 33 | this.itemId = itemId == null ? null : itemId.trim(); 34 | } 35 | 36 | public String getOrderId() { 37 | return orderId; 38 | } 39 | 40 | public void setOrderId(String orderId) { 41 | this.orderId = orderId == null ? null : orderId.trim(); 42 | } 43 | 44 | public Integer getNum() { 45 | return num; 46 | } 47 | 48 | public void setNum(Integer num) { 49 | this.num = num; 50 | } 51 | 52 | public String getTitle() { 53 | return title; 54 | } 55 | 56 | public void setTitle(String title) { 57 | this.title = title == null ? null : title.trim(); 58 | } 59 | 60 | public Long getPrice() { 61 | return price; 62 | } 63 | 64 | public void setPrice(Long price) { 65 | this.price = price; 66 | } 67 | 68 | public Long getTotalFee() { 69 | return totalFee; 70 | } 71 | 72 | public void setTotalFee(Long totalFee) { 73 | this.totalFee = totalFee; 74 | } 75 | 76 | public String getPicPath() { 77 | return picPath; 78 | } 79 | 80 | public void setPicPath(String picPath) { 81 | this.picPath = picPath == null ? null : picPath.trim(); 82 | } 83 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbOrderShipping.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class TbOrderShipping { 6 | private String orderId; 7 | 8 | private String receiverName; 9 | 10 | private String receiverPhone; 11 | 12 | private String receiverMobile; 13 | 14 | private String receiverState; 15 | 16 | private String receiverCity; 17 | 18 | private String receiverDistrict; 19 | 20 | private String receiverAddress; 21 | 22 | private String receiverZip; 23 | 24 | private Date created; 25 | 26 | private Date updated; 27 | 28 | public String getOrderId() { 29 | return orderId; 30 | } 31 | 32 | public void setOrderId(String orderId) { 33 | this.orderId = orderId == null ? null : orderId.trim(); 34 | } 35 | 36 | public String getReceiverName() { 37 | return receiverName; 38 | } 39 | 40 | public void setReceiverName(String receiverName) { 41 | this.receiverName = receiverName == null ? null : receiverName.trim(); 42 | } 43 | 44 | public String getReceiverPhone() { 45 | return receiverPhone; 46 | } 47 | 48 | public void setReceiverPhone(String receiverPhone) { 49 | this.receiverPhone = receiverPhone == null ? null : receiverPhone.trim(); 50 | } 51 | 52 | public String getReceiverMobile() { 53 | return receiverMobile; 54 | } 55 | 56 | public void setReceiverMobile(String receiverMobile) { 57 | this.receiverMobile = receiverMobile == null ? null : receiverMobile.trim(); 58 | } 59 | 60 | public String getReceiverState() { 61 | return receiverState; 62 | } 63 | 64 | public void setReceiverState(String receiverState) { 65 | this.receiverState = receiverState == null ? null : receiverState.trim(); 66 | } 67 | 68 | public String getReceiverCity() { 69 | return receiverCity; 70 | } 71 | 72 | public void setReceiverCity(String receiverCity) { 73 | this.receiverCity = receiverCity == null ? null : receiverCity.trim(); 74 | } 75 | 76 | public String getReceiverDistrict() { 77 | return receiverDistrict; 78 | } 79 | 80 | public void setReceiverDistrict(String receiverDistrict) { 81 | this.receiverDistrict = receiverDistrict == null ? null : receiverDistrict.trim(); 82 | } 83 | 84 | public String getReceiverAddress() { 85 | return receiverAddress; 86 | } 87 | 88 | public void setReceiverAddress(String receiverAddress) { 89 | this.receiverAddress = receiverAddress == null ? null : receiverAddress.trim(); 90 | } 91 | 92 | public String getReceiverZip() { 93 | return receiverZip; 94 | } 95 | 96 | public void setReceiverZip(String receiverZip) { 97 | this.receiverZip = receiverZip == null ? null : receiverZip.trim(); 98 | } 99 | 100 | public Date getCreated() { 101 | return created; 102 | } 103 | 104 | public void setCreated(Date created) { 105 | this.created = created; 106 | } 107 | 108 | public Date getUpdated() { 109 | return updated; 110 | } 111 | 112 | public void setUpdated(Date updated) { 113 | this.updated = updated; 114 | } 115 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-pojo/src/main/java/cn/e3/pojo/TbUser.java: -------------------------------------------------------------------------------- 1 | package cn.e3.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class TbUser { 6 | private Long id; 7 | 8 | private String username; 9 | 10 | private String password; 11 | 12 | private String phone; 13 | 14 | private String email; 15 | 16 | private Date created; 17 | 18 | private Date updated; 19 | 20 | public Long getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Long id) { 25 | this.id = id; 26 | } 27 | 28 | public String getUsername() { 29 | return username; 30 | } 31 | 32 | public void setUsername(String username) { 33 | this.username = username == null ? null : username.trim(); 34 | } 35 | 36 | public String getPassword() { 37 | return password; 38 | } 39 | 40 | public void setPassword(String password) { 41 | this.password = password == null ? null : password.trim(); 42 | } 43 | 44 | public String getPhone() { 45 | return phone; 46 | } 47 | 48 | public void setPhone(String phone) { 49 | this.phone = phone == null ? null : phone.trim(); 50 | } 51 | 52 | public String getEmail() { 53 | return email; 54 | } 55 | 56 | public void setEmail(String email) { 57 | this.email = email == null ? null : email.trim(); 58 | } 59 | 60 | public Date getCreated() { 61 | return created; 62 | } 63 | 64 | public void setCreated(Date created) { 65 | this.created = created; 66 | } 67 | 68 | public Date getUpdated() { 69 | return updated; 70 | } 71 | 72 | public void setUpdated(Date updated) { 73 | this.updated = updated; 74 | } 75 | } -------------------------------------------------------------------------------- /e3-manager/e3-manager-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | cn.e3mall 5 | e3-manager 6 | 0.0.1-SNAPSHOT 7 | 8 | e3-manager-service 9 | 14 | 15 | 16 | 17 | org.springframework 18 | spring-context 19 | 20 | 21 | org.springframework 22 | spring-beans 23 | 24 | 25 | org.springframework 26 | spring-webmvc 27 | 28 | 29 | org.springframework 30 | spring-jdbc 31 | 32 | 33 | org.springframework 34 | spring-aspects 35 | 36 | 37 | org.springframework 38 | spring-jms 39 | 40 | 41 | org.springframework 42 | spring-context-support 43 | 44 | 45 | 46 | cn.e3mall 47 | e3-manager-dao 48 | 0.0.1-SNAPSHOT 49 | 50 | 51 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-service/src/main/java/cn/e3/manager/service/ItemService.java: -------------------------------------------------------------------------------- 1 | package cn.e3.manager.service; 2 | 3 | import cn.e3.pojo.TbItem; 4 | 5 | public interface ItemService { 6 | 7 | /** 8 | * 需求:根据商品id查询商品 9 | * 参数:Long itemId 10 | * 返回值:TbItem 11 | */ 12 | public TbItem findItemByID(Long itemId); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-service/src/main/java/cn/e3/manager/service/impl/ItemServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cn.e3.manager.service.impl; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Service; 5 | 6 | import cn.e3.manager.service.ItemService; 7 | import cn.e3.mapper.TbItemMapper; 8 | import cn.e3.pojo.TbItem; 9 | @Service 10 | public class ItemServiceImpl implements ItemService { 11 | 12 | //注入商品mapper接口代理对象 13 | @Autowired 14 | private TbItemMapper itemMapper; 15 | 16 | /** 17 | * 需求:根据商品id查询商品 18 | * 参数:Long itemId 19 | * 返回值:TbItem 20 | */ 21 | public TbItem findItemByID(Long itemId) { 22 | // 根据商品id查询商品 23 | TbItem item = itemMapper.selectByPrimaryKey(itemId); 24 | return item; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-web/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | cn.e3mall 5 | e3-manager 6 | 0.0.1-SNAPSHOT 7 | 8 | e3-manager-web 9 | war 10 | 15 | 16 | 17 | 18 | jstl 19 | jstl 20 | 21 | 22 | javax.servlet 23 | servlet-api 24 | provided 25 | 26 | 27 | javax.servlet 28 | jsp-api 29 | provided 30 | 31 | 32 | 33 | cn.e3mall 34 | e3-manager-service 35 | 0.0.1-SNAPSHOT 36 | 37 | 38 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-web/src/main/java/cn/e3/manager/controller/ItemController.java: -------------------------------------------------------------------------------- 1 | package cn.e3.manager.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.web.bind.annotation.PathVariable; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | import cn.e3.manager.service.ItemService; 9 | import cn.e3.pojo.TbItem; 10 | 11 | @RestController 12 | public class ItemController { 13 | 14 | //注入service接口代理对象 15 | @Autowired 16 | private ItemService itemService; 17 | 18 | /** 19 | * 需求:根据商品id查询商品 20 | * 参数:Long itemId 21 | * 返回值:json格式TbItem 22 | */ 23 | @RequestMapping("item/{itemId}") 24 | public TbItem findItemByID(@PathVariable Long itemId){ 25 | //调用service服务方法 26 | TbItem item = itemService.findItemByID(itemId); 27 | return item; 28 | 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-web/src/main/resources/config/sqlMapConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-web/src/main/resources/jdbc.properties: -------------------------------------------------------------------------------- 1 | jdbc.url = jdbc:mysql://192.168.66.66:3306/e3mall 2 | jdbc.driver = com.mysql.jdbc.Driver 3 | jdbc.username= root 4 | jdbc.password= admin 5 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-web/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=DEBUG, Console 2 | #Console 3 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 4 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n 6 | log4j.logger.java.sql.ResultSet=INFO 7 | log4j.logger.org.apache=INFO 8 | log4j.logger.java.sql.Connection=DEBUG 9 | log4j.logger.java.sql.Statement=DEBUG 10 | log4j.logger.java.sql.PreparedStatement=DEBUG -------------------------------------------------------------------------------- /e3-manager/e3-manager-web/src/main/resources/mvc/springmvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-web/src/main/resources/spring/applicationContext-dao.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-web/src/main/resources/spring/applicationContext-service.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /e3-manager/e3-manager-web/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | characterEncoding 10 | org.springframework.web.filter.CharacterEncodingFilter 11 | 12 | encoding 13 | utf-8 14 | 15 | 16 | 17 | characterEncoding 18 | /* 19 | 20 | 21 | 22 | org.springframework.web.context.ContextLoaderListener 23 | 24 | 25 | contextConfigLocation 26 | 30 | classpath:spring/*.xml 31 | 32 | 33 | 34 | springmvc 35 | org.springframework.web.servlet.DispatcherServlet 36 | 37 | contextConfigLocation 38 | classpath:mvc/*.xml 39 | 40 | 1 41 | 42 | 43 | springmvc 44 | / 45 | 46 | -------------------------------------------------------------------------------- /e3-manager/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | cn.e3mall 6 | e3-parent 7 | 0.0.1-SNAPSHOT 8 | 9 | e3-manager 10 | pom 11 | 12 | e3-manager-pojo 13 | e3-manager-dao 14 | e3-manager-service 15 | e3-manager-web 16 | 17 | 18 | 19 | 20 | cn.e3mall 21 | e3-common 22 | 0.0.1-SNAPSHOT 23 | 24 | 25 | 26 | 27 | 28 | org.apache.tomcat.maven 29 | tomcat7-maven-plugin 30 | 2.2 31 | 32 | 33 | / 34 | 8080 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /e3-parent/.gitignore: -------------------------------------------------------------------------------- 1 | /.settings 2 | .project -------------------------------------------------------------------------------- /e3-parent/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | cn.e3mall 5 | e3-parent 6 | 0.0.1-SNAPSHOT 7 | pom 8 | 14 | 15 | 16 | 4.12 17 | 4.1.3.RELEASE 18 | 3.2.8 19 | 1.2.2 20 | 1.2.15 21 | 5.1.32 22 | 1.6.4 23 | 2.4.2 24 | 1.0.9 25 | 4.3.5 26 | 1.2 27 | 2.5 28 | 2.0 29 | 2.5 30 | 3.3.2 31 | 1.3.2 32 | 3.3 33 | 3.4.2-fix 34 | 0.9.1 35 | 1.3.1 36 | 2.7.2 37 | 4.10.3 38 | 2.5.3 39 | 3.4.7 40 | 0.1 41 | 5.11.2 42 | 2.3.23 43 | 2.2.2 44 | 45 | 46 | 47 | 48 | 49 | 50 | joda-time 51 | joda-time 52 | ${joda-time.version} 53 | 54 | 55 | 56 | org.apache.commons 57 | commons-lang3 58 | ${commons-lang3.version} 59 | 60 | 61 | org.apache.commons 62 | commons-io 63 | ${commons-io.version} 64 | 65 | 66 | commons-net 67 | commons-net 68 | ${commons-net.version} 69 | 70 | 71 | 72 | com.fasterxml.jackson.core 73 | jackson-databind 74 | ${jackson.version} 75 | 76 | 77 | 78 | org.apache.httpcomponents 79 | httpclient 80 | ${httpclient.version} 81 | 82 | 83 | 84 | org.quartz-scheduler 85 | quartz 86 | ${quartz.version} 87 | 88 | 89 | 90 | junit 91 | junit 92 | ${junit.version} 93 | test 94 | 95 | 96 | 97 | org.slf4j 98 | slf4j-log4j12 99 | ${slf4j.version} 100 | 101 | 102 | 103 | org.mybatis 104 | mybatis 105 | ${mybatis.version} 106 | 107 | 108 | org.mybatis 109 | mybatis-spring 110 | ${mybatis.spring.version} 111 | 112 | 113 | com.github.miemiedev 114 | mybatis-paginator 115 | ${mybatis.paginator.version} 116 | 117 | 118 | com.github.pagehelper 119 | pagehelper 120 | ${pagehelper.version} 121 | 122 | 123 | 124 | mysql 125 | mysql-connector-java 126 | ${mysql.version} 127 | 128 | 129 | 130 | com.alibaba 131 | druid 132 | ${druid.version} 133 | 134 | 135 | 136 | org.springframework 137 | spring-context 138 | ${spring.version} 139 | 140 | 141 | org.springframework 142 | spring-beans 143 | ${spring.version} 144 | 145 | 146 | org.springframework 147 | spring-webmvc 148 | ${spring.version} 149 | 150 | 151 | org.springframework 152 | spring-jdbc 153 | ${spring.version} 154 | 155 | 156 | org.springframework 157 | spring-aspects 158 | ${spring.version} 159 | 160 | 161 | org.springframework 162 | spring-jms 163 | ${spring.version} 164 | 165 | 166 | org.springframework 167 | spring-context-support 168 | ${spring.version} 169 | 170 | 171 | 172 | jstl 173 | jstl 174 | ${jstl.version} 175 | 176 | 177 | javax.servlet 178 | servlet-api 179 | ${servlet-api.version} 180 | provided 181 | 182 | 183 | javax.servlet 184 | jsp-api 185 | ${jsp-api.version} 186 | provided 187 | 188 | 189 | 190 | commons-fileupload 191 | commons-fileupload 192 | ${commons-fileupload.version} 193 | 194 | 195 | 196 | redis.clients 197 | jedis 198 | ${jedis.version} 199 | 200 | 201 | 202 | org.apache.solr 203 | solr-solrj 204 | ${solrj.version} 205 | 206 | 207 | 208 | com.alibaba 209 | dubbo 210 | ${dubbo.version} 211 | 212 | 213 | org.apache.zookeeper 214 | zookeeper 215 | ${zookeeper.version} 216 | 217 | 218 | com.github.sgroschupf 219 | zkclient 220 | ${zkclient.version} 221 | 222 | 223 | org.apache.activemq 224 | activemq-all 225 | ${activemq.version} 226 | 227 | 228 | org.freemarker 229 | freemarker 230 | ${freemarker.version} 231 | 232 | 233 | 234 | 235 | ${project.artifactId} 236 | 237 | 238 | 239 | org.apache.maven.plugins 240 | maven-resources-plugin 241 | 2.7 242 | 243 | UTF-8 244 | 245 | 246 | 247 | 248 | org.apache.maven.plugins 249 | maven-compiler-plugin 250 | 3.2 251 | 252 | 1.7 253 | 1.7 254 | UTF-8 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | org.apache.tomcat.maven 263 | tomcat7-maven-plugin 264 | 2.2 265 | 266 | 267 | 268 | 269 | --------------------------------------------------------------------------------