记得上下班打卡 | git大法好,push需谨慎

Commit 23868911 authored by GaoHu's avatar GaoHu

修改票提

parent 1a8dc0d6
......@@ -72,7 +72,7 @@ public class SmileAgentServiceImpl extends ServiceImpl<SmileAgentMapper, SmileAg
try {
smileAgents.forEach(smileAgent -> {
//是否是修改票提
smileAgentMapper.updateById(smileAgent);
smileAgentMapper.updateAgentById(smileAgent.getId(),smileAgent.getTotalCarry(),smileAgent.getOrdCarry());
SmileAgentVo smileAgentVo = new SmileAgentVo();
BeanUtils.copyProperties(smileAgent, smileAgentVo);
smileRedisUtils.set(SmileRedisConst.SMILE_AGENT.concat(smileAgent.getPerformanceId()).concat(":").concat(smileAgent.getTicketId()), smileAgentVo);
......
......@@ -3,6 +3,9 @@ package com.liquidnet.service.smile.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liquidnet.service.smile.entity.SmileAgent;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
/**
* <p>
......@@ -14,4 +17,5 @@ import com.liquidnet.service.smile.entity.SmileAgent;
*/
public interface SmileAgentMapper extends BaseMapper<SmileAgent> {
void updateAgentById(@Param("id")Long id,@Param("totalCarry") BigDecimal totalCarry,@Param("ordCarry") BigDecimal ordCarry);
}
......@@ -13,4 +13,10 @@
</if>
</where>
</select>
<update id="updateAgentById">
update smile_agent
set ord_carry = #{ordCarry}, total_carry = #{totalCarry}
where id = #{id}
</update>
</mapper>
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