商品测试
parent
9d7bfbbc6b
commit
ae673f38d9
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.system.domain;
|
||||
package com.nuyu.product.domain;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
|
@ -24,6 +24,10 @@ public class ProductTypeAttrValue extends BaseEntity
|
|||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer pageSize=10;
|
||||
|
||||
private Integer pageNum=1;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Author: wangxinyuan
|
||||
* @Date: 2024/5/8 下午7:13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/txt")
|
||||
public class ProductTypeAttrValueController {
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.domain.AjaxResult;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.product.service.TestService;
|
||||
import com.nuyu.product.domain.MallProductInfo;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Author: wangxinyuan
|
||||
* @Date: 2024/5/8 下午5:11
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("txt")
|
||||
public class TestController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private TestService testService;
|
||||
|
||||
|
||||
@RequiresPermissions("product:info:list")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MallProductInfo mallProductInfo){
|
||||
PageInfo<MallProductInfo> info=testService.list(mallProductInfo);
|
||||
return AjaxResult.success(info);
|
||||
}
|
||||
}
|
|
@ -4,9 +4,9 @@ import org.apache.ibatis.annotations.Mapper;
|
|||
|
||||
/**
|
||||
* @Author: wangxinyuan
|
||||
* @Date: 2024/5/8 下午5:11
|
||||
* @Date: 2024/5/8 下午7:14
|
||||
*/
|
||||
@Mapper
|
||||
public interface TestMapper {
|
||||
public interface ProductTypeAttrValueMapper {
|
||||
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.muyu.product.service.Impl;
|
||||
|
||||
import com.muyu.product.service.ProductTypeAttrValueService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Author: wangxinyuan
|
||||
* @Date: 2024/5/8 下午7:14
|
||||
*/
|
||||
@Service
|
||||
public class ProductTypeAttrValueServiceImpl implements ProductTypeAttrValueService {
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
package com.muyu.product.service.Impl;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.muyu.product.service.TestService;
|
||||
import com.nuyu.product.domain.MallProductInfo;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Author: wangxinyuan
|
||||
* @Date: 2024/5/8 下午5:12
|
||||
*/
|
||||
@Service
|
||||
public class TestServiceImpl implements TestService {
|
||||
@Override
|
||||
public PageInfo<MallProductInfo> list(MallProductInfo mallProductInfo) {
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
/**
|
||||
* @Author: wangxinyuan
|
||||
* @Date: 2024/5/8 下午7:14
|
||||
*/
|
||||
public interface ProductTypeAttrValueService {
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.nuyu.product.domain.MallProductInfo;
|
||||
|
||||
/**
|
||||
* @Author: wangxinyuan
|
||||
* @Date: 2024/5/8 下午5:11
|
||||
*/
|
||||
public interface TestService {
|
||||
|
||||
PageInfo<MallProductInfo> list(MallProductInfo mallProductInfo);
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.muyu.product.mapper.ProductTypeAttrValueMapper">
|
||||
|
||||
<resultMap type="com.nuyu.product.domain.ProductTypeAttrValue" id="MallProductInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="typeAttrValue" column="type_attr_value" />
|
||||
<result property="inputMethod" column="input_method" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="idDelete" column="id_delete" />
|
||||
<result property="createBy" column="create_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMallProductInfoVo">
|
||||
select id, type_attr_value, input_method, create_time, update_time, id_delete, create_by from mall_product_info
|
||||
</sql>
|
||||
|
||||
</mapper>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.muyu.product.mapper.TestMapper">
|
||||
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue