hdy
2024-12-28 9e2f3b91a51c181cb4a0d247419c58daa3937b7b
工单bom下发接口
已修改2个文件
9 ■■■■ 文件已修改
billion-framework/src/main/java/com/billion/framework/config/SecurityConfig.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
billion-main/src/main/java/com/billion/main/api/RestfulAPI.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
billion-framework/src/main/java/com/billion/framework/config/SecurityConfig.java
@@ -116,6 +116,7 @@
                    .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
                    .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
                        .antMatchers("/bs/workshop/**").permitAll()
                        .antMatchers("/dmMes/**").permitAll()
                    // 除上面外的所有请求全部需要鉴权认证
                    .anyRequest().authenticated();
            })
billion-main/src/main/java/com/billion/main/api/RestfulAPI.java
@@ -14,11 +14,15 @@
import org.springframework.beans.factory.annotation.Autowired;
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.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
//@Component
@RequestMapping("/dmMes")
public class RestfulAPI {
    @Autowired
@@ -83,9 +87,11 @@
            //出参
            OutPutParametersChild child = new OutPutParametersChild(workOrdersInfo.getMaterialNumber(), "S", "采集完成");
            outputParams.addData(child);
            outputParams.toJson();
        } else {
            OutPutParametersChild child = new OutPutParametersChild(workOrdersInfo.getMaterialNumber(), "F", "采集失败");
            outputParams.addData(child);
            outputParams.toJson();
        }
        return outputParams;