add: 手持包在线升级 PC标签打印

This commit is contained in:
2025-12-08 11:32:43 +08:00
parent 34e08b89c0
commit efbcaf0d2b
4 changed files with 69 additions and 0 deletions

View File

@@ -62,6 +62,12 @@ public class GroupController {
return new ResponseEntity<>(iMdPbGroupplateService.queryMater(whereJson), HttpStatus.OK);
}
@PostMapping("/queryMaterList")
@Log("查询物料集合")
public ResponseEntity<Object> queryMaterList() {
return new ResponseEntity<>(iMdPbGroupplateService.queryMaterList(), HttpStatus.OK);
}
@PostMapping("/checkVehicle")
@Log("校验载具")
public ResponseEntity<Object> checkVehicle(@RequestBody JSONObject whereJson) {

View File

@@ -0,0 +1,47 @@
package org.nl.wms.pda.authorization.controller;
/**
* @author ldjun
* @version 1.0
* @date 2023年02月14日 15:20
* @desc desc
*/
import cn.dev33.satoken.annotation.SaIgnore;
import com.alibaba.fastjson.JSONObject;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.nl.common.logging.annotation.Log;
import org.nl.system.service.param.ISysParamService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
*
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/pda/update")
@Slf4j
public class AppUpdateController {
private final ISysParamService iSysParamService;
@PostMapping
@Log("app更新")
@SaIgnore
public ResponseEntity<Object> appUpdate() {
JSONObject obj = new JSONObject();
String app_rul = iSysParamService.findByCode("APP_URL").getValue();
String app_version = iSysParamService.findByCode("APP_VERSION").getValue();
// obj.put("versionName","1.0.1");
// obj.put("url","http://172.17.2.163:8080/apk/app.apk");
obj.put("url", app_rul);
obj.put("versionName", app_version);
return new ResponseEntity<>(obj, HttpStatus.OK);
}
}

View File

@@ -55,6 +55,12 @@ public interface IMdPbGroupplateService extends IService<GroupPlate> {
*/
MdMeMaterialbase queryMater(JSONObject whereJson);
/**
* 查询物料集合
* @return List<MdMeMaterialbase>
*/
List<MdMeMaterialbase> queryMaterList();
/**
* 校验载具
*
@@ -86,4 +92,5 @@ public interface IMdPbGroupplateService extends IService<GroupPlate> {
* @param dto 实体类
*/
void printDelete(GroupPlate dto);
}

View File

@@ -130,6 +130,15 @@ public class MdPbGroupplateServiceImpl extends ServiceImpl<MdPbGroupplateMapper,
return iMdMeMaterialbaseService.getByCode(whereJson.getString("material_code"));
}
@Override
public List<MdMeMaterialbase> queryMaterList() {
return iMdMeMaterialbaseService.list(
new QueryWrapper<MdMeMaterialbase>().lambda()
.eq(MdMeMaterialbase::getIs_delete, IOSConstant.ZERO)
.eq(MdMeMaterialbase::getIs_used, IOSConstant.ONE)
);
}
@Override
public void checkVehicle(JSONObject whereJson) {
MdPbStoragevehicleinfo vehicleDao = iMdPbStoragevehicleinfoService.getByCode(whereJson.getString("storagevehicle_code"));