ÎļþÃû´Ó server/openapi/src/main/java/com/doumee/web/BizResourceController.java ÐÞ¸Ä |
| | |
| | | package com.doumee.web; |
| | | package com.doumee.api.web; |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.annotation.ErpLoginRequired; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.erp.model.openapi.request.*; |
| | | import com.doumee.core.erp.model.openapi.response.*; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.service.business.ERPSyncService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | |
| | | @RestController |
| | | @RequestMapping("/visitbiz") |
| | | @Slf4j |
| | | public class BizResourceController extends ApiController{ |
| | | public class BizResourceController extends ApiController { |
| | | |
| | | @Autowired |
| | | private ERPSyncService erpSyncService; |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | |
| | | @ApiOperation(value = "è°ç¨åæ®è·åæ¥å£", notes = "访客端æä¾ï¼ä¾ERP端è°ç¨ï¼åERPæä¾ç»æ¥å£è°ç¨åè¯") |
| | |
| | | erpSyncService.approveApply(param); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "FTPè´¦æ·ä¿¡æ¯", notes = "访客端æä¾ï¼ä¾ERP端è°ç¨ï¼FTPè´¦æ·ä¿¡æ¯,å
¶ä¸ãFTPèµæºè®¿é®æ å°å°åãç¨äºå¾çåæ¾ä½¿ç¨ï¼" + |
| | | "æ¯å¦äººè¸å¾çåæ¾æ¼æ¥ï¼ãFTPèµæºè®¿é®æ å°å°åã+ãFTPç¨æ·å¾çåå¨ç®å½ã+ãå®é
人è¸å¾çåå¨å段å
容ã" + |
| | | "å¦ï¼http://175.27.187.84/file4/member/20231211/skjd-skdjf4enc-flgk.png") |
| | | @GetMapping("/resource/ftpAccount") |
| | | public ApiResponse<Map<String,Object>> ftpAccount() { |
| | | Map<String,Object> map = new HashMap<>(); |
| | | map.put("FTP主æºå°åIP", |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_HOST).getCode()); |
| | | map.put("FTP访é®ç«¯å£", |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_PORT).getCode()); |
| | | map.put("FTP访é®ç»å½å", |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_USERNAME).getCode()); |
| | | map.put("FTP访é®ç»éå¯ç ", |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_PWD).getCode()); |
| | | map.put("FTP访客äºä»¶å¾çåå¨ç®å½", |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.VISIT_EVENT_IMG).getCode()); |
| | | map.put("FTP车è¾äºä»¶å¾çåå¨ç®å½", |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.CAR_EVENT_IMG).getCode()); |
| | | map.put("FTPé¨ç¦äºä»¶å¾çåå¨ç®å½", |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.DEVICE_EVENT_IMG).getCode()); |
| | | map.put("FTPç¨æ·å¾çåå¨ç®å½", |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.MEMBER_IMG).getCode()); |
| | | map.put("FTPèµæºè®¿é®æ å°å°å", |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode()); |
| | | return ApiResponse.success(map); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |