摘要: 首先肯定要根据productId查到对应Product相关的信息,既然这里是Dao层的开发,所以需要在Dao层需要开发一个 selectProductById 方法 商品信息有商品缩略图和详情图片,这里我们先约定好:如果用户传入了新的商品缩略图和详情图片,就将原有的商品缩略图和详情图片删除掉 商品缩 阅读全文
posted @ 2018-08-03 13:15 windbag7 阅读(359) 评论(0) 推荐(0) 编辑
摘要: productoperation.html 其中包括商品信息的添加和商品信息的修改,这个和店铺信息注册和修改用的是一样的 productoperation.js 商品添加和商品编辑使用的是同一个页面,所以需要根据请求的url来判断是编辑还是新增。 问题 在调试的时候发现String index ou 阅读全文
posted @ 2018-08-03 10:29 windbag7 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: ProductStateEnum ProductOperationException ProductExecution 阅读全文
posted @ 2018-08-03 10:15 windbag7 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 商品添加dao层 商品添加映射文件 批量添加商品图片dao层 批量添加商品图片映射文件 Service层 步骤如下: 1.处理商品的缩略图,获取相对路径,为了调用dao层的时候写入 tb_product中的 img_addr字段有值 2.写入tb_product ,得到product_id(Myba 阅读全文
posted @ 2018-08-01 18:39 windbag7 阅读(693) 评论(0) 推荐(0) 编辑
摘要: productcategorymanagement.js 阅读全文
posted @ 2018-07-30 19:51 windbag7 阅读(517) 评论(0) 推荐(0) 编辑
摘要: dao层 映射文件 1 在做单元测试的时候可以使用@FixMethodOrder(MethodSorters.NAME_ASCENDING) 2 来调整测试方法顺序 3 public class ProductCategoryDaoTest extends BaseTest{ 4 @Autowire 阅读全文
posted @ 2018-07-30 17:52 windbag7 阅读(419) 评论(0) 推荐(0) 编辑
摘要: productcategorymanegement.html productcategorymanegement.js 阅读全文
posted @ 2018-07-30 16:42 windbag7 阅读(301) 评论(0) 推荐(0) 编辑
摘要: dao层 映射文件 Service层 Service的实现类 Controller层 阅读全文
posted @ 2018-07-30 16:05 windbag7 阅读(399) 评论(0) 推荐(0) 编辑
摘要: ProductCategoryEnum ProductCategoryExecution ProductCategoryException 阅读全文
posted @ 2018-07-30 15:39 windbag7 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 商店管理中的类别管理 功能:从后台返回商品信息,动态生成删除按钮 dao层开始 映射文件 Service层 Service实现类 Controller层 productcategorymanagement.html productcategorymanagement.js productcatego 阅读全文
posted @ 2018-07-30 15:13 windbag7 阅读(496) 评论(0) 推荐(0) 编辑