代码修改

This commit is contained in:
lyd
2022-11-02 09:12:08 +08:00
parent a40ea20ce8
commit d1661c9fe2
3 changed files with 9 additions and 11 deletions

View File

@@ -6,12 +6,10 @@ import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.nl.annotation.Log;
import org.nl.wms.st.basedata.service.InKilnService;
import org.nl.wms.st.basedata.service.dto.StructattrDto;
import org.nl.wms.st.basedata.service.KilnService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@@ -28,20 +26,20 @@ import java.util.Map;
@Slf4j
public class KilnController {
private final InKilnService inKilnService;
private final KilnService kiLnService;
@GetMapping
@Log("查询出/入窑缓存库仓位")
@ApiOperation("查询出/入窑缓存库仓位")
public ResponseEntity<Object> inKilnCacheQuery(@RequestParam Map whereJson, Pageable page){
return new ResponseEntity<>(inKilnService.kilnCacheQuery(whereJson,page), HttpStatus.OK);
return new ResponseEntity<>(kiLnService.kilnCacheQuery(whereJson,page), HttpStatus.OK);
}
@PostMapping
@Log("修改出/入窑缓存库仓位")
@ApiOperation("修改出/入窑缓存库仓位")
public ResponseEntity<Object> update(@RequestBody JSONObject dto){
inKilnService.update(dto);
kiLnService.update(dto);
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
}
}

View File

@@ -7,10 +7,10 @@ import java.util.Map;
/**
* @author: lyd
* @description: 入窑缓存库
* @description: 入窑缓存库
* @Date: 2022/11/1
*/
public interface InKilnService {
public interface KilnService {
/**
*
* @param whereJson
@@ -20,7 +20,7 @@ public interface InKilnService {
Map<String,Object> kilnCacheQuery(Map whereJson, Pageable page);
/**
* 修改入窑库存
* 修改入窑库存
* @param dto
*/
void update(JSONObject dto);

View File

@@ -5,7 +5,7 @@ import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSONObject;
import org.nl.utils.SecurityUtils;
import org.nl.wms.st.basedata.service.InKilnService;
import org.nl.wms.st.basedata.service.KilnService;
import org.nl.wql.WQL;
import org.nl.wql.core.bean.WQLObject;
import org.nl.wql.util.WqlUtil;
@@ -20,7 +20,7 @@ import java.util.Map;
* @Date: 2022/11/1
*/
@Service
public class KilnServiceImpl implements InKilnService {
public class KilnServiceImpl implements KilnService {
@Override
public Map<String, Object> kilnCacheQuery(Map whereJson, Pageable page) {