修改aftersale_arbitrate主键类型为字符串

20230922-ljl-fixBug
wangchaoxu 1 year ago
parent 7fb08dedbf
commit 3aab442524

@ -7,13 +7,13 @@ import com.ms.dal.entity.AftersaleArbitrate;
*/
public interface AftersaleArbitrateService {
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(AftersaleArbitrate record);
int insertSelective(AftersaleArbitrate record);
AftersaleArbitrate selectByPrimaryKey(Long id);
AftersaleArbitrate selectByPrimaryKey(String id);
int updateByPrimaryKeySelective(AftersaleArbitrate record);

@ -333,7 +333,7 @@ public class AfterSaleServiceImpl implements AfterSaleService {
return null;
}
AftersaleArbitrate arbitrateData = new AftersaleArbitrate();
arbitrateData.setArbitrateId(Long.valueOf(apiArbitrateInfo.getArbitrateId()));
arbitrateData.setArbitrateId(apiArbitrateInfo.getArbitrateId());
arbitrateData.setIsRequiredEvidence(apiArbitrateInfo.getIsRequiredEvidence());
arbitrateData.setArbitrateConclusion(apiArbitrateInfo.getArbitrateConclusion().toString());
arbitrateData.setArbitrateOpinion(apiArbitrateInfo.getArbitrateOpinion());

@ -17,7 +17,7 @@ public class AftersaleArbitrateServiceImpl implements AftersaleArbitrateService{
private AftersaleArbitrateMapper aftersaleArbitrateMapper;
@Override
public int deleteByPrimaryKey(Long id) {
public int deleteByPrimaryKey(String id) {
return aftersaleArbitrateMapper.deleteByPrimaryKey(id);
}
@ -32,7 +32,7 @@ public class AftersaleArbitrateServiceImpl implements AftersaleArbitrateService{
}
@Override
public AftersaleArbitrate selectByPrimaryKey(Long id) {
public AftersaleArbitrate selectByPrimaryKey(String id) {
return aftersaleArbitrateMapper.selectByPrimaryKey(id);
}

@ -5,80 +5,80 @@ import java.util.Date;
import lombok.Data;
/**
*
*
* @TableName aftersale_arbitrate
*/
@Data
public class AftersaleArbitrate implements Serializable {
/**
*
*
*/
private Long arbitrateId;
private String arbitrateId;
/**
*
*
*/
private Long aftersaleId;
/**
*
*
*/
private Long shopId;
/**
*
*
*/
private Long arbitrateState;
/**
*
*
*/
private Date evidenceDeadline;
/**
*
*
*/
private Boolean isRequiredEvidence;
/**
*
*
*/
private String arbitrateEvidenceTmpl;
/**
*
*
*/
private String evidence;
/**
*
*
*/
private String arbitrateConclusion;
/**
*
*
*/
private String arbitrateOpinion;
/**
*
*
*/
private Date arbitrateCreateTime;
/**
*
*
*/
private Date arbitrateUpdateTime;
/**
*
*
*/
private Date gmtCreate;
/**
*
*
*/
private Date gmtModified;
private static final long serialVersionUID = 1L;
}
}

@ -9,13 +9,13 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface AftersaleArbitrateMapper {
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(AftersaleArbitrate record);
int insertSelective(AftersaleArbitrate record);
AftersaleArbitrate selectByPrimaryKey(Long id);
AftersaleArbitrate selectByPrimaryKey(String id);
int updateByPrimaryKeySelective(AftersaleArbitrate record);

@ -5,7 +5,7 @@
<mapper namespace="com.ms.dal.mapper.AftersaleArbitrateMapper">
<resultMap id="BaseResultMap" type="com.ms.dal.entity.AftersaleArbitrate">
<id property="arbitrateId" column="arbitrate_id" jdbcType="BIGINT"/>
<id property="arbitrateId" column="arbitrate_id" jdbcType="VARCHAR"/>
<result property="aftersaleId" column="aftersale_id" jdbcType="BIGINT"/>
<result property="shopId" column="shop_id" jdbcType="BIGINT"/>
<result property="arbitrateState" column="arbitrate_state" jdbcType="SMALLINT"/>
@ -29,16 +29,16 @@
gmt_create,gmt_modified
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from aftersale_arbitrate
where arbitrate_id = #{arbitrateId,jdbcType=BIGINT}
where arbitrate_id = #{arbitrateId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from aftersale_arbitrate
where arbitrate_id = #{arbitrateId,jdbcType=BIGINT}
where arbitrate_id = #{arbitrateId,jdbcType=VARCHAR}
</delete>
<insert id="insert" keyColumn="arbitrate_id" keyProperty="arbitrateId" parameterType="com.ms.dal.entity.AftersaleArbitrate" useGeneratedKeys="true">
insert into aftersale_arbitrate
@ -47,7 +47,7 @@
,arbitrate_evidence_tmpl,evidence,arbitrate_conclusion
,arbitrate_opinion,arbitrate_create_time,arbitrate_update_time
,gmt_create,gmt_modified)
values (#{arbitrateId,jdbcType=BIGINT},#{aftersaleId,jdbcType=BIGINT},#{shopId,jdbcType=BIGINT}
values (#{arbitrateId,jdbcType=VARCHAR},#{aftersaleId,jdbcType=BIGINT},#{shopId,jdbcType=BIGINT}
,#{arbitrateState,jdbcType=SMALLINT},#{evidenceDeadline,jdbcType=TIMESTAMP},#{isRequiredEvidence,jdbcType=BOOLEAN}
,#{arbitrateEvidenceTmpl,jdbcType=VARCHAR},#{evidence,jdbcType=VARCHAR},#{arbitrateConclusion,jdbcType=VARCHAR}
,#{arbitrateOpinion,jdbcType=VARCHAR},#{arbitrateCreateTime,jdbcType=TIMESTAMP},#{arbitrateUpdateTime,jdbcType=TIMESTAMP}
@ -72,7 +72,7 @@
<if test="gmtModified != null">gmt_modified,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="arbitrateId != null">#{arbitrateId,jdbcType=BIGINT},</if>
<if test="arbitrateId != null">#{arbitrateId,jdbcType=VARCHAR},</if>
<if test="aftersaleId != null">#{aftersaleId,jdbcType=BIGINT},</if>
<if test="shopId != null">#{shopId,jdbcType=BIGINT},</if>
<if test="arbitrateState != null">#{arbitrateState,jdbcType=SMALLINT},</if>
@ -92,7 +92,7 @@
update aftersale_arbitrate
<set>
<if test="aftersaleId != null">
aftersale_id = #{aftersaleId,jdbcType=BIGINT},
aftersale_id = #{aftersaleId,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=BIGINT},
@ -131,12 +131,12 @@
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
</if>
</set>
where arbitrate_id = #{arbitrateId,jdbcType=BIGINT}
where arbitrate_id = #{arbitrateId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.ms.dal.entity.AftersaleArbitrate">
update aftersale_arbitrate
set
aftersale_id = #{aftersaleId,jdbcType=BIGINT},
set
aftersale_id = #{aftersaleId,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=BIGINT},
arbitrate_state = #{arbitrateState,jdbcType=SMALLINT},
evidence_deadline = #{evidenceDeadline,jdbcType=TIMESTAMP},
@ -149,6 +149,6 @@
arbitrate_update_time = #{arbitrateUpdateTime,jdbcType=TIMESTAMP},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
where arbitrate_id = #{arbitrateId,jdbcType=BIGINT}
where arbitrate_id = #{arbitrateId,jdbcType=VARCHAR}
</update>
</mapper>

@ -9,7 +9,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication(scanBasePackages = {"com.ms","com.jinritemai"})
@MapperScan("com.ms.dal.mapper")
@EnableAsync
@EnableScheduling
//@EnableScheduling
public class MsApplication {
public static void main(String[] args) {

Loading…
Cancel
Save