增加VIN码判断
This commit is contained in:
parent
e0d3af5069
commit
10e932fd21
@ -9,7 +9,6 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|||||||
@ -81,6 +81,6 @@ public interface PileOrderService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/chargeOrder/pileVin")
|
@GetMapping("/chargeOrder/pileVin")
|
||||||
R pileVin(@RequestParam(value = "serialNumber") String serialNumber,@RequestParam String vinNumber);
|
R pileVin(@RequestParam(value = "serialNumber") String serialNumber,@RequestParam(value = "vinNumber") String vinNumber);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import com.xhpc.order.domain.XhpcPileRegularInspect;
|
|||||||
import com.xhpc.order.service.IXhpcPileRegularInspectService;
|
import com.xhpc.order.service.IXhpcPileRegularInspectService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.scheduling.annotation.Scheduled;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@ -33,4 +34,20 @@ public class XhpcPileRegularInspectController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//版本号定时任务
|
||||||
|
@GetMapping("/getVersionTimer")
|
||||||
|
@Scheduled(cron = "0 0/1 * * * ?")
|
||||||
|
public void getVersionTimer()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//校时效价定时任务
|
||||||
|
|
||||||
|
//费率定时任务
|
||||||
|
|
||||||
|
//定期抄发管理员定时任务
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,4 +9,6 @@ public interface IXhpcPileRegularInspectService {
|
|||||||
AjaxResult getPileRegularInspectTenantId();
|
AjaxResult getPileRegularInspectTenantId();
|
||||||
|
|
||||||
AjaxResult addPileRegularInspect(XhpcPileRegularInspect xhpcPileRegularInspect);
|
AjaxResult addPileRegularInspect(XhpcPileRegularInspect xhpcPileRegularInspect);
|
||||||
|
|
||||||
|
void getVersionTimer();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -102,9 +102,9 @@ public class XhpcPileRegularInspectServiceImpl extends BaseService implements IX
|
|||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
return AjaxResult.error(500, "费率格式不对");
|
return AjaxResult.error(500, "费率格式不对");
|
||||||
}
|
}
|
||||||
|
//验证是否有重复的桩添加版本号
|
||||||
|
|
||||||
if(xhpcPileRegularInspect.getPileRegularInspectId()==null){
|
if(xhpcPileRegularInspect.getPileRegularInspectId()==null){
|
||||||
|
|
||||||
Map<String, Object> map = xhpcPileRegularInspectMapper.getPileRegularInspectTenantId(tenantId);
|
Map<String, Object> map = xhpcPileRegularInspectMapper.getPileRegularInspectTenantId(tenantId);
|
||||||
if(map !=null){
|
if(map !=null){
|
||||||
return AjaxResult.error(500, "请重新登录!");
|
return AjaxResult.error(500, "请重新登录!");
|
||||||
@ -123,4 +123,9 @@ public class XhpcPileRegularInspectServiceImpl extends BaseService implements IX
|
|||||||
return AjaxResult.error(500, "请重新登录");
|
return AjaxResult.error(500, "请重新登录");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getVersionTimer() {
|
||||||
|
//获取
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user