|
@@ -8,6 +8,8 @@ import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLDecoder;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
@@ -444,4 +446,29 @@ public class FbsWorkshopDispatchListController {
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Author chenchuang
|
|
|
+ * @Description //TODO
|
|
|
+ * @Date 2020/10/22 14:09
|
|
|
+ * @Param []
|
|
|
+ * @return org.jeecg.common.api.vo.Result<java.lang.String>
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/getProductionEfficiency")
|
|
|
+ public Result<String> getProductionEfficiency(){
|
|
|
+ Result<String> result=new Result<>();
|
|
|
+ try {
|
|
|
+ String str=fbsWorkshopDispatchListService.getProductionEfficiency();
|
|
|
+ if(StringUtils.isNotBlank(str)){
|
|
|
+ result.setResult(str);
|
|
|
+ }else{
|
|
|
+ result.setResult("0");
|
|
|
+ }
|
|
|
+ result.success("操作成功");
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ result.error500("操作失败:"+e.getMessage());
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|