7 changed files with 125 additions and 43 deletions
@ -0,0 +1,21 @@ |
|||
package com.yxt.anrui.base.api.basemanufactorsubscription; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/7/1 15:47 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class BaseManufactorDto implements Dto { |
|||
private static final long serialVersionUID = 1306862380450074162L; |
|||
@ApiModelProperty(value = "厂家认款sid") |
|||
private String sid; |
|||
@ApiModelProperty(value = "用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "备注") |
|||
private String remarks; |
|||
} |
@ -1,13 +1,33 @@ |
|||
<?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.yxt.anrui.base.biz.basemanufactorsubscription.BaseManufactorSubscriptionMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionVo"> |
|||
SELECT * FROM base_manufactor_subscription <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionVo"> |
|||
SELECT * FROM base_manufactor_subscription <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" |
|||
resultType="com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionVo"> |
|||
SELECT * |
|||
FROM base_manufactor_subscription |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" |
|||
resultType="com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionVo"> |
|||
SELECT * |
|||
FROM base_manufactor_subscription |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<update id="adopt"> |
|||
update base_manufactor_subscription set subscriptionPeo = #{subscriptionPeo} |
|||
, subscriptionDate = #{subscriptionDate} |
|||
, state = 1 |
|||
<if test="remarks != null and remarks != ''"> |
|||
, remarks=#{remarks} |
|||
</if> |
|||
where sid = #{sid} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue