parent
cd05cd4cd8
commit
4678f4624e
|
@ -171,6 +171,10 @@ public class BusStoreInfoController extends BaseController {
|
|||
@Log(title = "修改营销状态", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("changeReturnVisitStatus")
|
||||
public AjaxResult changeReturnVisitStatus(@RequestBody BusStoreInfo busStoreInfo1) {
|
||||
int ai = agentInfoService.getIntegralByAccount(SecurityUtils.getUsername());
|
||||
if(ai <= 0){
|
||||
throw new ServiceException("账户积分不足,请联系上级代理充值!");
|
||||
}
|
||||
BusStoreInfo busStoreInfo = new BusStoreInfo();
|
||||
busStoreInfo.setId(busStoreInfo1.getId());
|
||||
busStoreInfo.setReturnVisitStatus(busStoreInfo1.getReturnVisitStatus());
|
||||
|
|
|
@ -40,6 +40,7 @@ import java.text.ParseException;
|
|||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
@ -719,6 +720,7 @@ public class MeituanServiceImpl implements IMeituanService {
|
|||
BusStoreDayHistoryInfo target = new BusStoreDayHistoryInfo();
|
||||
BeanUtils.copyProperties(busStoreDayInfo, target);
|
||||
target.setId(null);
|
||||
target.setCreateTime(Date.from(date.atZone(ZoneId.systemDefault()).toInstant()));
|
||||
busStoreDayHistoryInfoMapper.insertBusStoreDayHistoryInfo(target);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
where id = #{id}
|
||||
</select>
|
||||
<select id="getIntegralByAccount" resultType="java.lang.Integer" >
|
||||
select integral
|
||||
select ai_duration_balance
|
||||
from bus_agent_info
|
||||
where id = #{account}
|
||||
</select>
|
||||
|
|
Loading…
Reference in New Issue