Commit cc5cedab by XiaHou

权星相关接口修复

parent 2bbcb6e2
...@@ -67,8 +67,8 @@ public class PmsProductController { ...@@ -67,8 +67,8 @@ public class PmsProductController {
@RequestMapping(value = "/getPageList", method = RequestMethod.POST) @RequestMapping(value = "/getPageList", method = RequestMethod.POST)
public CommonResult<CommonPage<PmsProduct>> getPageList(@ApiParam("页数") @RequestParam("page")Integer page, @ApiParam("每页大小")@RequestParam("size")Integer size, public CommonResult<CommonPage<PmsProduct>> getPageList(@ApiParam("页数") @RequestParam("page")Integer page, @ApiParam("每页大小")@RequestParam("size")Integer size,
@ApiParam("模糊查询商品名称 ")@RequestParam("name") String name, @ApiParam("模糊查询商品名称 ")@RequestParam("name") String name,
@ApiParam("审核状态 0待审核 1审核通过 2审核未通过 ")@RequestParam("auditStatus") Integer auditStatus){ @ApiParam("审核状态 0待审核 1审核通过 2审核未通过 ")@RequestParam("auditStatus") Integer verifyStatus){
return CommonResult.success(CommonPage.restPage(this.productService.getPageList(page,size,name,auditStatus))); return CommonResult.success(CommonPage.restPage(this.productService.getPageList(page,size,name,verifyStatus)));
} }
@ApiOperation("权星后台_根据商品id修改一条商品数据") @ApiOperation("权星后台_根据商品id修改一条商品数据")
......
...@@ -169,9 +169,6 @@ public class PmsProduct implements Serializable { ...@@ -169,9 +169,6 @@ public class PmsProduct implements Serializable {
@ApiModelProperty(value = "分销佣金") @ApiModelProperty(value = "分销佣金")
private BigDecimal commission; private BigDecimal commission;
@ApiModelProperty(value = "审核状态 0待审核 1审核通过 2审核未通过")
private Integer auditStatus;
@ApiModelProperty(value = "商品描述") @ApiModelProperty(value = "商品描述")
private String description; private String description;
...@@ -596,14 +593,6 @@ public class PmsProduct implements Serializable { ...@@ -596,14 +593,6 @@ public class PmsProduct implements Serializable {
this.commission = commission; this.commission = commission;
} }
public Integer getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(Integer auditStatus) {
this.auditStatus = auditStatus;
}
public String getDescription() { public String getDescription() {
return description; return description;
} }
...@@ -678,7 +667,6 @@ public class PmsProduct implements Serializable { ...@@ -678,7 +667,6 @@ public class PmsProduct implements Serializable {
sb.append(", deliveryType=").append(deliveryType); sb.append(", deliveryType=").append(deliveryType);
sb.append(", contSign=").append(contSign); sb.append(", contSign=").append(contSign);
sb.append(", commission=").append(commission); sb.append(", commission=").append(commission);
sb.append(", auditStatus=").append(auditStatus);
sb.append(", description=").append(description); sb.append(", description=").append(description);
sb.append(", detailHtml=").append(detailHtml); sb.append(", detailHtml=").append(detailHtml);
sb.append(", serialVersionUID=").append(serialVersionUID); sb.append(", serialVersionUID=").append(serialVersionUID);
......
...@@ -3375,66 +3375,6 @@ public class PmsProductExample { ...@@ -3375,66 +3375,6 @@ public class PmsProductExample {
addCriterion("commission not between", value1, value2, "commission"); addCriterion("commission not between", value1, value2, "commission");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAuditStatusIsNull() {
addCriterion("audit_status is null");
return (Criteria) this;
}
public Criteria andAuditStatusIsNotNull() {
addCriterion("audit_status is not null");
return (Criteria) this;
}
public Criteria andAuditStatusEqualTo(Integer value) {
addCriterion("audit_status =", value, "auditStatus");
return (Criteria) this;
}
public Criteria andAuditStatusNotEqualTo(Integer value) {
addCriterion("audit_status <>", value, "auditStatus");
return (Criteria) this;
}
public Criteria andAuditStatusGreaterThan(Integer value) {
addCriterion("audit_status >", value, "auditStatus");
return (Criteria) this;
}
public Criteria andAuditStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("audit_status >=", value, "auditStatus");
return (Criteria) this;
}
public Criteria andAuditStatusLessThan(Integer value) {
addCriterion("audit_status <", value, "auditStatus");
return (Criteria) this;
}
public Criteria andAuditStatusLessThanOrEqualTo(Integer value) {
addCriterion("audit_status <=", value, "auditStatus");
return (Criteria) this;
}
public Criteria andAuditStatusIn(List<Integer> values) {
addCriterion("audit_status in", values, "auditStatus");
return (Criteria) this;
}
public Criteria andAuditStatusNotIn(List<Integer> values) {
addCriterion("audit_status not in", values, "auditStatus");
return (Criteria) this;
}
public Criteria andAuditStatusBetween(Integer value1, Integer value2) {
addCriterion("audit_status between", value1, value2, "auditStatus");
return (Criteria) this;
}
public Criteria andAuditStatusNotBetween(Integer value1, Integer value2) {
addCriterion("audit_status not between", value1, value2, "auditStatus");
return (Criteria) this;
}
} }
public static class Criteria extends GeneratedCriteria { public static class Criteria extends GeneratedCriteria {
......
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
<result column="delivery_type" jdbcType="INTEGER" property="deliveryType" /> <result column="delivery_type" jdbcType="INTEGER" property="deliveryType" />
<result column="cont_sign" jdbcType="VARCHAR" property="contSign" /> <result column="cont_sign" jdbcType="VARCHAR" property="contSign" />
<result column="commission" jdbcType="DECIMAL" property="commission" /> <result column="commission" jdbcType="DECIMAL" property="commission" />
<result column="audit_status" jdbcType="INTEGER" property="auditStatus" />
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.PmsProduct"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.PmsProduct">
<result column="description" jdbcType="LONGVARCHAR" property="description" /> <result column="description" jdbcType="LONGVARCHAR" property="description" />
...@@ -126,7 +125,7 @@ ...@@ -126,7 +125,7 @@
delivery_area, is_time_up, timer_date, market_date, product_origin, cost_price, bar_code, delivery_area, is_time_up, timer_date, market_date, product_origin, cost_price, bar_code,
virtual_sales, product_pic, pic_type, product_video, note, promotion_type, gift_growth, virtual_sales, product_pic, pic_type, product_video, note, promotion_type, gift_growth,
gift_point, use_point_limit, spu_id, third_flag, create_date, create_by, update_date, gift_point, use_point_limit, spu_id, third_flag, create_date, create_by, update_date,
update_by, del_flag, delete_status, delivery_type, cont_sign, commission, audit_status update_by, del_flag, delete_status, delivery_type, cont_sign, commission
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
description, detail_html description, detail_html
...@@ -180,11 +179,14 @@ ...@@ -180,11 +179,14 @@
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProduct"> <insert id="insert" parameterType="com.macro.mall.model.PmsProduct">
insert into pms_product (id, name, mcht_id, <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
publish_status, publish_date, verify_status, SELECT LAST_INSERT_ID()
new_status, brand_id, brand_name, </selectKey>
product_category_id, product_category_id_iii, insert into pms_product (name, mcht_id, publish_status,
product_category_id_i, feight_template_id, product_attribute_category_id, publish_date, verify_status, new_status,
brand_id, brand_name, product_category_id,
product_category_id_iii, product_category_id_i,
feight_template_id, product_attribute_category_id,
product_sn, recommand_status, sort, product_sn, recommand_status, sort,
price, sub_title, low_stock, price, sub_title, low_stock,
unit, weight, keywords, unit, weight, keywords,
...@@ -197,13 +199,13 @@ ...@@ -197,13 +199,13 @@
spu_id, third_flag, create_date, spu_id, third_flag, create_date,
create_by, update_date, update_by, create_by, update_date, update_by,
del_flag, delete_status, delivery_type, del_flag, delete_status, delivery_type,
cont_sign, commission, audit_status, cont_sign, commission, description,
description, detail_html) detail_html)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{mchtId,jdbcType=BIGINT}, values (#{name,jdbcType=VARCHAR}, #{mchtId,jdbcType=BIGINT}, #{publishStatus,jdbcType=INTEGER},
#{publishStatus,jdbcType=INTEGER}, #{publishDate,jdbcType=TIMESTAMP}, #{verifyStatus,jdbcType=INTEGER}, #{publishDate,jdbcType=TIMESTAMP}, #{verifyStatus,jdbcType=INTEGER}, #{newStatus,jdbcType=INTEGER},
#{newStatus,jdbcType=INTEGER}, #{brandId,jdbcType=BIGINT}, #{brandName,jdbcType=VARCHAR}, #{brandId,jdbcType=BIGINT}, #{brandName,jdbcType=VARCHAR}, #{productCategoryId,jdbcType=BIGINT},
#{productCategoryId,jdbcType=BIGINT}, #{productCategoryIdIii,jdbcType=BIGINT}, #{productCategoryIdIii,jdbcType=BIGINT}, #{productCategoryIdI,jdbcType=BIGINT},
#{productCategoryIdI,jdbcType=BIGINT}, #{feightTemplateId,jdbcType=BIGINT}, #{productAttributeCategoryId,jdbcType=BIGINT}, #{feightTemplateId,jdbcType=BIGINT}, #{productAttributeCategoryId,jdbcType=BIGINT},
#{productSn,jdbcType=VARCHAR}, #{recommandStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{productSn,jdbcType=VARCHAR}, #{recommandStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
#{price,jdbcType=DECIMAL}, #{subTitle,jdbcType=VARCHAR}, #{lowStock,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, #{subTitle,jdbcType=VARCHAR}, #{lowStock,jdbcType=INTEGER},
#{unit,jdbcType=VARCHAR}, #{weight,jdbcType=DECIMAL}, #{keywords,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{weight,jdbcType=DECIMAL}, #{keywords,jdbcType=VARCHAR},
...@@ -216,15 +218,15 @@ ...@@ -216,15 +218,15 @@
#{spuId,jdbcType=VARCHAR}, #{thirdFlag,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, #{spuId,jdbcType=VARCHAR}, #{thirdFlag,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP},
#{createBy,jdbcType=BIGINT}, #{updateDate,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=BIGINT}, #{createBy,jdbcType=BIGINT}, #{updateDate,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=BIGINT},
#{delFlag,jdbcType=INTEGER}, #{deleteStatus,jdbcType=INTEGER}, #{deliveryType,jdbcType=INTEGER}, #{delFlag,jdbcType=INTEGER}, #{deleteStatus,jdbcType=INTEGER}, #{deliveryType,jdbcType=INTEGER},
#{contSign,jdbcType=VARCHAR}, #{commission,jdbcType=DECIMAL}, #{auditStatus,jdbcType=INTEGER}, #{contSign,jdbcType=VARCHAR}, #{commission,jdbcType=DECIMAL}, #{description,jdbcType=LONGVARCHAR},
#{description,jdbcType=LONGVARCHAR}, #{detailHtml,jdbcType=LONGVARCHAR}) #{detailHtml,jdbcType=LONGVARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProduct"> <insert id="insertSelective" parameterType="com.macro.mall.model.PmsProduct">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product insert into pms_product
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null"> <if test="name != null">
name, name,
</if> </if>
...@@ -378,9 +380,6 @@ ...@@ -378,9 +380,6 @@
<if test="commission != null"> <if test="commission != null">
commission, commission,
</if> </if>
<if test="auditStatus != null">
audit_status,
</if>
<if test="description != null"> <if test="description != null">
description, description,
</if> </if>
...@@ -389,9 +388,6 @@ ...@@ -389,9 +388,6 @@
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="name != null"> <if test="name != null">
#{name,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
</if> </if>
...@@ -545,9 +541,6 @@ ...@@ -545,9 +541,6 @@
<if test="commission != null"> <if test="commission != null">
#{commission,jdbcType=DECIMAL}, #{commission,jdbcType=DECIMAL},
</if> </if>
<if test="auditStatus != null">
#{auditStatus,jdbcType=INTEGER},
</if>
<if test="description != null"> <if test="description != null">
#{description,jdbcType=LONGVARCHAR}, #{description,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -721,9 +714,6 @@ ...@@ -721,9 +714,6 @@
<if test="record.commission != null"> <if test="record.commission != null">
commission = #{record.commission,jdbcType=DECIMAL}, commission = #{record.commission,jdbcType=DECIMAL},
</if> </if>
<if test="record.auditStatus != null">
audit_status = #{record.auditStatus,jdbcType=INTEGER},
</if>
<if test="record.description != null"> <if test="record.description != null">
description = #{record.description,jdbcType=LONGVARCHAR}, description = #{record.description,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -789,7 +779,6 @@ ...@@ -789,7 +779,6 @@
delivery_type = #{record.deliveryType,jdbcType=INTEGER}, delivery_type = #{record.deliveryType,jdbcType=INTEGER},
cont_sign = #{record.contSign,jdbcType=VARCHAR}, cont_sign = #{record.contSign,jdbcType=VARCHAR},
commission = #{record.commission,jdbcType=DECIMAL}, commission = #{record.commission,jdbcType=DECIMAL},
audit_status = #{record.auditStatus,jdbcType=INTEGER},
description = #{record.description,jdbcType=LONGVARCHAR}, description = #{record.description,jdbcType=LONGVARCHAR},
detail_html = #{record.detailHtml,jdbcType=LONGVARCHAR} detail_html = #{record.detailHtml,jdbcType=LONGVARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
...@@ -849,8 +838,7 @@ ...@@ -849,8 +838,7 @@
delete_status = #{record.deleteStatus,jdbcType=INTEGER}, delete_status = #{record.deleteStatus,jdbcType=INTEGER},
delivery_type = #{record.deliveryType,jdbcType=INTEGER}, delivery_type = #{record.deliveryType,jdbcType=INTEGER},
cont_sign = #{record.contSign,jdbcType=VARCHAR}, cont_sign = #{record.contSign,jdbcType=VARCHAR},
commission = #{record.commission,jdbcType=DECIMAL}, commission = #{record.commission,jdbcType=DECIMAL}
audit_status = #{record.auditStatus,jdbcType=INTEGER}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -1011,9 +999,6 @@ ...@@ -1011,9 +999,6 @@
<if test="commission != null"> <if test="commission != null">
commission = #{commission,jdbcType=DECIMAL}, commission = #{commission,jdbcType=DECIMAL},
</if> </if>
<if test="auditStatus != null">
audit_status = #{auditStatus,jdbcType=INTEGER},
</if>
<if test="description != null"> <if test="description != null">
description = #{description,jdbcType=LONGVARCHAR}, description = #{description,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -1076,7 +1061,6 @@ ...@@ -1076,7 +1061,6 @@
delivery_type = #{deliveryType,jdbcType=INTEGER}, delivery_type = #{deliveryType,jdbcType=INTEGER},
cont_sign = #{contSign,jdbcType=VARCHAR}, cont_sign = #{contSign,jdbcType=VARCHAR},
commission = #{commission,jdbcType=DECIMAL}, commission = #{commission,jdbcType=DECIMAL},
audit_status = #{auditStatus,jdbcType=INTEGER},
description = #{description,jdbcType=LONGVARCHAR}, description = #{description,jdbcType=LONGVARCHAR},
detail_html = #{detailHtml,jdbcType=LONGVARCHAR} detail_html = #{detailHtml,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
...@@ -1133,8 +1117,7 @@ ...@@ -1133,8 +1117,7 @@
delete_status = #{deleteStatus,jdbcType=INTEGER}, delete_status = #{deleteStatus,jdbcType=INTEGER},
delivery_type = #{deliveryType,jdbcType=INTEGER}, delivery_type = #{deliveryType,jdbcType=INTEGER},
cont_sign = #{contSign,jdbcType=VARCHAR}, cont_sign = #{contSign,jdbcType=VARCHAR},
commission = #{commission,jdbcType=DECIMAL}, commission = #{commission,jdbcType=DECIMAL}
audit_status = #{auditStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
...@@ -777,15 +777,15 @@ public class PmsProductServiceImpl implements PmsProductService { ...@@ -777,15 +777,15 @@ public class PmsProductServiceImpl implements PmsProductService {
* @return * @return
*/ */
@Override @Override
public List<PmsProduct> getPageList(Integer pageNum,Integer pageSize,String name,Integer auditStatus){ public List<PmsProduct> getPageList(Integer pageNum,Integer pageSize,String name,Integer verifyStatus){
PageHelper.startPage(pageNum, pageSize); PageHelper.startPage(pageNum, pageSize);
PmsProductExample example = new PmsProductExample(); PmsProductExample example = new PmsProductExample();
PmsProductExample.Criteria criteria = example.createCriteria(); PmsProductExample.Criteria criteria = example.createCriteria();
if(name != null && !"".equals(name)){ if(name != null && !"".equals(name)){
criteria.andNameLike("%"+"name"+"%"); criteria.andNameLike("%"+"name"+"%");
} }
if(auditStatus == null){ if(verifyStatus != null){
criteria.andAuditStatusEqualTo(auditStatus); criteria.andVerifyStatusEqualTo(verifyStatus);
} }
return this.pmsProductMapper.selectByExample(example); return this.pmsProductMapper.selectByExample(example);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment