新增远程更新桩程序接口
This commit is contained in:
parent
6c43b748ad
commit
c9199b79bd
@ -13,10 +13,16 @@ import com.xhpc.common.log.annotation.Log;
|
||||
import com.xhpc.common.log.enums.BusinessType;
|
||||
import com.xhpc.common.redis.service.RedisService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -165,6 +171,21 @@ public class XhpcChargingPileController extends BaseController {
|
||||
return AjaxResult.success(r.getMsg());
|
||||
}
|
||||
|
||||
// 更新桩程序
|
||||
@GetMapping("/softwareUpgrade")
|
||||
public AjaxResult softwareUpgrade(String serialNumber) {
|
||||
|
||||
if(serialNumber==null || "".equals(serialNumber)){
|
||||
return AjaxResult.error("桩号为空");
|
||||
}
|
||||
R r = powerPileService.pileSoftwareUpgrade(serialNumber);
|
||||
if(r.getCode() !=200){
|
||||
return AjaxResult.error(r.getMsg());
|
||||
}
|
||||
return AjaxResult.success(r.getMsg());
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/configRmReplyMessage")
|
||||
public AjaxResult configRmReplyMessage(String serialNumber) {
|
||||
if(serialNumber==null || "".equals(serialNumber)){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user