Merge remote-tracking branch 'origin/wuhuyancao' into wuhuyancao
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:jkinterfacelog:create', 'æ°å»ºé¥åææ¥å£äº¤äºè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); | 
|---|
|  |  |  | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:jkinterfacelog:delete', 'å é¤é¥åææ¥å£äº¤äºè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); | 
|---|
|  |  |  | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:jkinterfacelog:update', 'ä¿®æ¹é¥åææ¥å£äº¤äºè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); | 
|---|
|  |  |  | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:jkinterfacelog:query', 'æ¥è¯¢é¥åææ¥å£äº¤äºè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); | 
|---|
|  |  |  | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:jkinterfacelog:exportExcel', '导åºé¥åææ¥å£äº¤äºè®°å½(Excel)', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | public static final String SIGN_IN_QRCODE ="SIGN_IN_QRCODE" ; | 
|---|
|  |  |  | public static final String SIGN_IN_ATTENTION ="SIGN_IN_ATTENTION" ; | 
|---|
|  |  |  | public static final String SIGN_IN_QRCODE_PREFIX ="SIGN_IN_QRCODE_PREFIX" ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æä½ç±»åï¼ç¨äºåæ¥å£éªè¯åç» | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | 
|---|
|  |  |  | public static final String PRESSURE ="PRESSURE" ; | 
|---|
|  |  |  | public static final String CONCENTRATION ="CONCENTRATION" ; | 
|---|
|  |  |  | public static final String THRESHOLD ="THRESHOLD" ; | 
|---|
|  |  |  | public static final String LINK_PHONE ="LINK_PHONE" ; | 
|---|
|  |  |  | //被æè®¿äººä¿¡æ¯æ ¡éªæ¹å¼ï¼0ææºå·åç¬æ ¡éª 1ææºå·åå§åç»åæ ¡éªï¼ | 
|---|
|  |  |  | public static final String BEVISITED_USER_VALID = "BEVISITED_USER_VALID"; | 
|---|
|  |  |  | public static final String LW_BEVISITED_USER_VALID = "LW_BEVISITED_USER_VALID"; | 
|---|
|  |  |  | 
|---|
|  |  |  | map.put(key,val); | 
|---|
|  |  |  | return JSONObject.toJSONString(map); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public  enum WarningConfig { | 
|---|
|  |  |  | ALARM_TEST(10002, "é
ç²¾æµè¯"), | 
|---|
|  |  |  | GRID_TIME_OUT_INFO(10003, "å¼é¨è¶
æ¶æªå
³é"), | 
|---|
|  |  |  | KEY_TIME_OUT_BACK(10004, "é¥åè¶
æ¶æªå½è¿"), | 
|---|
|  |  |  | ; | 
|---|
|  |  |  | // æååé | 
|---|
|  |  |  | private int key; | 
|---|
|  |  |  | private String info; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // æé æ¹æ³ | 
|---|
|  |  |  | WarningConfig(int key,String info) { | 
|---|
|  |  |  | this.key = key; | 
|---|
|  |  |  | this.info = info; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public int getKey() { | 
|---|
|  |  |  | return key; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setKey(int key) { | 
|---|
|  |  |  | this.key = key; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getInfo() { | 
|---|
|  |  |  | return info; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setInfo(String info) { | 
|---|
|  |  |  | this.info = info; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | public static void getPasswordTypeCount(String password){ | 
|---|
|  |  |  | Set<Integer> typeCount = new HashSet<>(4); | 
|---|
|  |  |  | for (int i = 0; i < password.length(); i++) { | 
|---|
|  |  |  | String key = password.substring(0,i); | 
|---|
|  |  |  | String key = password.substring(i,i+1); | 
|---|
|  |  |  | if(LOWER.indexOf(key)>=Constants.ZERO){ | 
|---|
|  |  |  | typeCount.add(Constants.ZERO); | 
|---|
|  |  |  | }else if(UPPER.indexOf(key)>=Constants.ZERO){ | 
|---|
|  |  |  | 
|---|
|  |  |  | .set(SystemUser::getProhibitStatus,Constants.ZERO) | 
|---|
|  |  |  | .set(SystemUser::getErrTimes,Constants.ZERO) | 
|---|
|  |  |  | .setSql(" PROHIBIT_TIME = null ") | 
|---|
|  |  |  | .setSql(" PROHIBIT_REMARK = null ") | 
|---|
|  |  |  | .eq(SystemUser::getId,user.getId()) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | package com.doumee.cloud.admin; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.doumee.api.BaseController; | 
|---|
|  |  |  | import com.doumee.config.annotation.CloudRequiredPermission; | 
|---|
|  |  |  | import com.doumee.core.annotation.excel.ExcelExporter; | 
|---|
|  |  |  | import com.doumee.core.annotation.pr.PreventRepeat; | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | import com.doumee.dao.business.model.JkInterfaceLog; | 
|---|
|  |  |  | import com.doumee.service.business.JkInterfaceLogService; | 
|---|
|  |  |  | import com.doumee.service.business.third.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.service.business.third.model.PageData; | 
|---|
|  |  |  | import com.doumee.service.business.third.model.PageWrap; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import org.apache.shiro.authz.annotation.RequiresPermissions; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  | import javax.servlet.http.HttpServletResponse; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.ArrayList; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author æ±è¹è¹ | 
|---|
|  |  |  | * @date 2025/10/28 16:26 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Api(tags = "é¥åææ¥å£äº¤äºè®°å½") | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/jkInterfaceLog") | 
|---|
|  |  |  | public class JkInterfaceLogCloudController extends BaseController { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private JkInterfaceLogService jkInterfaceLogService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PreventRepeat | 
|---|
|  |  |  | @ApiOperation("æ°å»º") | 
|---|
|  |  |  | @PostMapping("/create") | 
|---|
|  |  |  | @CloudRequiredPermission("business:jkinterfacelog:create") | 
|---|
|  |  |  | public ApiResponse create(@RequestBody JkInterfaceLog jkInterfaceLog) { | 
|---|
|  |  |  | return ApiResponse.success(jkInterfaceLogService.create(jkInterfaceLog)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("æ ¹æ®IDå é¤") | 
|---|
|  |  |  | @GetMapping("/delete/{id}") | 
|---|
|  |  |  | @CloudRequiredPermission("business:jkinterfacelog:delete") | 
|---|
|  |  |  | public ApiResponse deleteById(@PathVariable Integer id) { | 
|---|
|  |  |  | jkInterfaceLogService.deleteById(id); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("æ¹éå é¤") | 
|---|
|  |  |  | @GetMapping("/delete/batch") | 
|---|
|  |  |  | @CloudRequiredPermission("business:jkinterfacelog:delete") | 
|---|
|  |  |  | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { | 
|---|
|  |  |  | String [] idArray = ids.split(","); | 
|---|
|  |  |  | List<Integer> idList = new ArrayList<>(); | 
|---|
|  |  |  | for (String id : idArray) { | 
|---|
|  |  |  | idList.add(Integer.valueOf(id)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | jkInterfaceLogService.deleteByIdInBatch(idList); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("æ ¹æ®IDä¿®æ¹") | 
|---|
|  |  |  | @PostMapping("/updateById") | 
|---|
|  |  |  | @CloudRequiredPermission("business:jkinterfacelog:update") | 
|---|
|  |  |  | public ApiResponse updateById(@RequestBody JkInterfaceLog jkInterfaceLog) { | 
|---|
|  |  |  | jkInterfaceLogService.updateById(jkInterfaceLog); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("å页æ¥è¯¢") | 
|---|
|  |  |  | @PostMapping("/page") | 
|---|
|  |  |  | @CloudRequiredPermission("business:jkinterfacelog:query") | 
|---|
|  |  |  | public ApiResponse<PageData<JkInterfaceLog>> findPage (@RequestBody PageWrap<JkInterfaceLog> pageWrap) { | 
|---|
|  |  |  | return ApiResponse.success(jkInterfaceLogService.findPage(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("导åºExcel") | 
|---|
|  |  |  | @PostMapping("/exportExcel") | 
|---|
|  |  |  | @CloudRequiredPermission("business:jkinterfacelog:exportExcel") | 
|---|
|  |  |  | public void exportExcel (@RequestBody PageWrap<JkInterfaceLog> pageWrap, HttpServletResponse response) { | 
|---|
|  |  |  | ExcelExporter.build(JkInterfaceLog.class).export(jkInterfaceLogService.findPage(pageWrap).getRecords(), "é¥åææ¥å£äº¤äºè®°å½", response); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("æ ¹æ®IDæ¥è¯¢") | 
|---|
|  |  |  | @GetMapping("/{id}") | 
|---|
|  |  |  | @CloudRequiredPermission("business:jkinterfacelog:query") | 
|---|
|  |  |  | public ApiResponse findById(@PathVariable Integer id) { | 
|---|
|  |  |  | return ApiResponse.success(jkInterfaceLogService.findById(id)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | import com.doumee.dao.business.dto.*; | 
|---|
|  |  |  | import com.doumee.dao.business.model.InterfaceLog; | 
|---|
|  |  |  | import com.doumee.dao.business.model.JkCabinetGrid; | 
|---|
|  |  |  | import com.doumee.dao.business.model.JkInterfaceLog; | 
|---|
|  |  |  | import com.doumee.dao.business.model.JkVersion; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.AdminCabinetVO; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.CabinetDetailVO; | 
|---|
|  |  |  | 
|---|
|  |  |  | private JkCabinetGridService jkCabinetGridService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private InterfaceLogService interfaceLogService; | 
|---|
|  |  |  | private JkInterfaceLogService interfaceLogService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private JkIccardService jkIccardService; | 
|---|
|  |  |  | 
|---|
|  |  |  | this.saveInterfaceLog(Constants.strToJson("id",id.toString()), null,"updateRunStatusById","æ´æ°é¥åæå¨çº¿ç¶æ"); | 
|---|
|  |  |  | return ApiResponse.success("æ´æ°æå"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("è·åå¯ç®¡ççé¥åæå表 - ç®¡çå") | 
|---|
|  |  |  | @GetMapping("/getAdminCabinetInfo") | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private void saveInterfaceLog(String s, String result,String url,String name) { | 
|---|
|  |  |  | InterfaceLog hkMonitoryLogDO=new InterfaceLog(); | 
|---|
|  |  |  | JkInterfaceLog hkMonitoryLogDO=new JkInterfaceLog(); | 
|---|
|  |  |  | hkMonitoryLogDO.setType(0); | 
|---|
|  |  |  | hkMonitoryLogDO.setCreateDate(new Date()); | 
|---|
|  |  |  | hkMonitoryLogDO.setIsdeleted(0); | 
|---|
|  |  |  | 
|---|
|  |  |  | hkMonitoryLogDO.setUrl(url); | 
|---|
|  |  |  | interfaceLogService.create(hkMonitoryLogDO); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @ApiOperation("é
ç²¾æ£æµåè¦") | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | package com.doumee.dao.business; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.doumee.dao.business.model.JkInterfaceLog; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author æ±è¹è¹ | 
|---|
|  |  |  | * @date 2025/10/28 16:26 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public interface JkInterfaceLogMapper extends BaseMapper<JkInterfaceLog> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | package com.doumee.dao.business.model; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableField; | 
|---|
|  |  |  | import com.doumee.core.annotation.excel.ExcelColumn; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModel; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModelProperty; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.IdType; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableId; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableName; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * é¥åææ¥å£äº¤äºè®°å½ | 
|---|
|  |  |  | * @author æ±è¹è¹ | 
|---|
|  |  |  | * @date 2025/10/28 16:26 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @ApiModel("é¥åææ¥å£äº¤äºè®°å½") | 
|---|
|  |  |  | @TableName("`jk_interface_log`") | 
|---|
|  |  |  | public class JkInterfaceLog { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @TableId(type = IdType.AUTO) | 
|---|
|  |  |  | @ApiModelProperty(value = "主é®", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="主é®") | 
|---|
|  |  |  | private Integer id; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="å建人ç¼ç ") | 
|---|
|  |  |  | private Integer creator; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "å建æ¶é´") | 
|---|
|  |  |  | @ExcelColumn(name="å建æ¶é´") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd") | 
|---|
|  |  |  | private Date createDate; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="æ´æ°äººç¼ç ") | 
|---|
|  |  |  | private Integer editor; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "æ´æ°æ¶é´") | 
|---|
|  |  |  | @ExcelColumn(name="æ´æ°æ¶é´") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd") | 
|---|
|  |  |  | private Date editDate; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "æ¯å¦å é¤0妠1æ¯", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="æ¯å¦å é¤0妠1æ¯") | 
|---|
|  |  |  | private Integer isdeleted; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "夿³¨") | 
|---|
|  |  |  | @ExcelColumn(name="夿³¨") | 
|---|
|  |  |  | private String remark; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "ç±»å 0è°ç¨ 1æ¨éæ¥å", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="ç±»å 0è°ç¨ 1æ¨éæ¥å") | 
|---|
|  |  |  | private Integer type; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "æ¥å£åç§°") | 
|---|
|  |  |  | @ExcelColumn(name="æ¥å£åç§°") | 
|---|
|  |  |  | private String name; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "å°åä¿¡æ¯") | 
|---|
|  |  |  | @ExcelColumn(name="å°åä¿¡æ¯") | 
|---|
|  |  |  | private String url; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "请æ±åæ°") | 
|---|
|  |  |  | @ExcelColumn(name="请æ±åæ°") | 
|---|
|  |  |  | private String request; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "ååºåæ°") | 
|---|
|  |  |  | @ExcelColumn(name="ååºåæ°") | 
|---|
|  |  |  | private String repose; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "è°ç¨ç»æ 0æå 1失败", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="è°ç¨ç»æ 0æå 1失败") | 
|---|
|  |  |  | private Integer success; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "å¹³å°", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="å¹³å°") | 
|---|
|  |  |  | private Integer plat; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "å
³è对象类å", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="å
³è对象类å") | 
|---|
|  |  |  | private Integer objType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "å
³è对象ç¼ç ï¼å¤ä¸ªç¨è±æéå·éå¼ï¼") | 
|---|
|  |  |  | @ExcelColumn(name="å
³è对象ç¼ç ï¼å¤ä¸ªç¨è±æéå·éå¼ï¼") | 
|---|
|  |  |  | private String objId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "å¼å§æ¶é´") | 
|---|
|  |  |  | @TableField(exist = false) | 
|---|
|  |  |  | private Date startDate; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "ç»ææ¶é´") | 
|---|
|  |  |  | @TableField(exist = false) | 
|---|
|  |  |  | private Date endDate; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | package com.doumee.service.business; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.doumee.service.business.third.model.PageData; | 
|---|
|  |  |  | import com.doumee.service.business.third.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.dao.business.model.JkInterfaceLog; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * é¥åææ¥å£äº¤äºè®°å½Serviceå®ä¹ | 
|---|
|  |  |  | * @author æ±è¹è¹ | 
|---|
|  |  |  | * @date 2025/10/28 16:26 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public interface JkInterfaceLogService { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å建 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param jkInterfaceLog å®ä½å¯¹è±¡ | 
|---|
|  |  |  | * @return Integer | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Integer create(JkInterfaceLog jkInterfaceLog); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä¸»é®å é¤ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param id ä¸»é® | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | void deleteById(Integer id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å é¤ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param jkInterfaceLog å®ä½å¯¹è±¡ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | void delete(JkInterfaceLog jkInterfaceLog); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¹é主é®å é¤ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param ids ä¸»é®é | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | void deleteByIdInBatch(List<Integer> ids); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä¸»é®æ´æ° | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param jkInterfaceLog å®ä½å¯¹è±¡ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | void updateById(JkInterfaceLog jkInterfaceLog); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¹é䏻鮿´æ° | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param jkInterfaceLogs å®ä½é | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | void updateByIdInBatch(List<JkInterfaceLog> jkInterfaceLogs); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä¸»é®æ¥è¯¢ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param id ä¸»é® | 
|---|
|  |  |  | * @return JkInterfaceLog | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | JkInterfaceLog findById(Integer id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param jkInterfaceLog å®ä½å¯¹è±¡ | 
|---|
|  |  |  | * @return JkInterfaceLog | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | JkInterfaceLog findOne(JkInterfaceLog jkInterfaceLog); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¡ä»¶æ¥è¯¢ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param jkInterfaceLog å®ä½å¯¹è±¡ | 
|---|
|  |  |  | * @return List<JkInterfaceLog> | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<JkInterfaceLog> findList(JkInterfaceLog jkInterfaceLog); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å页æ¥è¯¢ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param pageWrap å页对象 | 
|---|
|  |  |  | * @return PageData<JkInterfaceLog> | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | PageData<JkInterfaceLog> findPage(PageWrap<JkInterfaceLog> pageWrap); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¡ä»¶ç»è®¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param jkInterfaceLog å®ä½å¯¹è±¡ | 
|---|
|  |  |  | * @return long | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | long count(JkInterfaceLog jkInterfaceLog); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public List<Cars> findList(Cars cars) { | 
|---|
|  |  |  | if(Objects.nonNull(cars) | 
|---|
|  |  |  | if(Objects.nonNull(cars) && Objects.nonNull(cars.getType()) | 
|---|
|  |  |  | && Constants.equalsInteger(Constants.ZERO,cars.getType())){ | 
|---|
|  |  |  | return this.getGwCar(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | }else if(Objects.nonNull(jkCabinetGrid.getChannelCode())||Objects.nonNull(jkCabinetGrid.getBoardCode())){ | 
|---|
|  |  |  | jkCabinetGridMapper.update(new UpdateWrapper<JkCabinetGrid>().lambda() | 
|---|
|  |  |  | .set(Objects.nonNull(jkCabinetGrid.getChannelCode()),JkCabinetGrid::getChannelCode,jkCabinetGrid.getChannelCode()) | 
|---|
|  |  |  | .set(Objects.nonNull(jkCabinetGrid.getBoardCode()),JkCabinetGrid::getBoardCode,jkCabinetGrid.getBoardCode()) | 
|---|
|  |  |  | .set(JkCabinetGrid::getEditDate, DateUtil.getCurrDateTime()) | 
|---|
|  |  |  | .eq(JkCabinetGrid::getId,jkCabinetGrid.getId())); | 
|---|
|  |  |  | try{ | 
|---|
|  |  |  | jkCabinetGridMapper.update(new UpdateWrapper<JkCabinetGrid>().lambda() | 
|---|
|  |  |  | .set(Objects.nonNull(jkCabinetGrid.getChannelCode()),JkCabinetGrid::getChannelCode,jkCabinetGrid.getChannelCode()) | 
|---|
|  |  |  | .set(Objects.nonNull(jkCabinetGrid.getBoardCode()),JkCabinetGrid::getBoardCode,jkCabinetGrid.getBoardCode()) | 
|---|
|  |  |  | .set(JkCabinetGrid::getEditDate, DateUtil.getCurrDateTime()) | 
|---|
|  |  |  | .eq(JkCabinetGrid::getId,jkCabinetGrid.getId())); | 
|---|
|  |  |  | }catch (Exception e){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"请确ä¿é¥åæééå·/æ¿å·å¯ä¸"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | .eq(Objects.nonNull(model.getStatus()),JkCabinetGrid::getStatus,model.getStatus()) | 
|---|
|  |  |  | .isNull(Objects.nonNull(model.getBindStatus())&&Constants.equalsInteger(model.getBindStatus(),Constants.ZERO),JkCabinetGrid::getKeyId) | 
|---|
|  |  |  | .isNotNull(Objects.nonNull(model.getBindStatus())&&Constants.equalsInteger(model.getBindStatus(),Constants.ONE),JkCabinetGrid::getKeyId) | 
|---|
|  |  |  | .like(StringUtils.isNotBlank(model.getKeyCode()),JkKeys::getCode,model.getKeyCode()); | 
|---|
|  |  |  | .like(StringUtils.isNotBlank(model.getKeyCode()),JkKeys::getCode,model.getKeyCode()) | 
|---|
|  |  |  | .orderByAsc(JkCabinetGrid::getId) | 
|---|
|  |  |  | ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | IPage<JkCabinetGrid> iPage = jkCabinetGridMapper.selectJoinPage(page,JkCabinetGrid.class,wrapper); | 
|---|
|  |  |  | for (JkCabinetGrid jkCabinetGrid:iPage.getRecords()) { | 
|---|
|  |  |  | jkCabinetGrid.setBindStatus(Objects.isNull(jkCabinetGrid.getKeyId())?Constants.ZERO:Constants.ONE); | 
|---|
|  |  |  | 
|---|
|  |  |  | jkCabinetGridMapper.update(new UpdateWrapper<JkCabinetGrid>().lambda() | 
|---|
|  |  |  | .set(JkCabinetGrid::getKeyId,null) | 
|---|
|  |  |  | .set(JkCabinetGrid::getEditDate, DateUtil.getCurrDateTime()) | 
|---|
|  |  |  | .eq(JkCabinetGrid::getId,jkCabinetGridList.stream().map(i->i.getId()).collect(Collectors.toList()))); | 
|---|
|  |  |  | .in(JkCabinetGrid::getId,jkCabinetGridList.stream().map(i->i.getId()).collect(Collectors.toList()))); | 
|---|
|  |  |  | List<Integer> keyIdList = jkCabinetGridList.stream().filter(i->Objects.nonNull(i.getKeyId())).map(i->i.getKeyId()).collect(Collectors.toList()); | 
|---|
|  |  |  | if(CollectionUtils.isNotEmpty(keyIdList)){ | 
|---|
|  |  |  | jkKeysMapper.update(new UpdateWrapper<JkKeys>().lambda() | 
|---|
|  |  |  | 
|---|
|  |  |  | jkCabinetLog.setGridId(jkCabinetGrid.getId()); | 
|---|
|  |  |  | jkCabinetLog.setAuthType(Constants.TWO); | 
|---|
|  |  |  | jkCabinetLog.setMemberId(loginUserInfo.getMemberId()); | 
|---|
|  |  |  | jkCabinetLog.setStatus(Constants.ZERO); | 
|---|
|  |  |  | if(Objects.nonNull(jkCabinetGrid.getKeyId())){ | 
|---|
|  |  |  | jkCabinetLog.setKeyId(jkCabinetGrid.getKeyId()); | 
|---|
|  |  |  | JkKeys jkKeys = jkKeysMapper.selectById(jkCabinetGrid.getKeyId()); | 
|---|
|  |  |  | if(Objects.nonNull(jkKeys)){ | 
|---|
|  |  |  | if(!Constants.equalsInteger(jkKeys.getStatus(),Constants.ZERO)){ | 
|---|
|  |  |  | 
|---|
|  |  |  | jkCabinetLog.setAuthType(dto.getAuthType()); | 
|---|
|  |  |  | jkCabinetLog.setMemberId(dto.getMemberId()); | 
|---|
|  |  |  | jkCabinetLog.setKeyStatus(Constants.ZERO); | 
|---|
|  |  |  | Boolean isChange = false; | 
|---|
|  |  |  | jkCabinetLog.setStatus(Constants.ZERO); | 
|---|
|  |  |  | if(Objects.nonNull(jkCabinetGrid.getKeyId())){ | 
|---|
|  |  |  | //åªæé¥åæç»å®äºé¥å信毠æä¼æ´æ°é¥åçä¿¡æ¯ | 
|---|
|  |  |  | JkKeys jkKeys = jkKeysMapper.selectById(jkCabinetGrid.getKeyId()); | 
|---|
|  |  |  | jkCabinetLog.setKeyId(jkCabinetGrid.getKeyId()); | 
|---|
|  |  |  | if(Objects.nonNull(jkKeys)){ | 
|---|
|  |  |  | if(!Constants.equalsInteger(jkKeys.getStatus(),Constants.ZERO)){ | 
|---|
|  |  |  | jkCabinetLog.setCarId(jkKeys.getCarId()); | 
|---|
|  |  |  | 
|---|
|  |  |  | jkCabinetLog.setKeyStatus(dto.getKeyStatus()); | 
|---|
|  |  |  | //é¥åç¶æä¸å½åæä½ç¶æä¸ä¸è´ï¼åè¿è¡æ´æ°é¥åç¶æ | 
|---|
|  |  |  | if(!Constants.equalsInteger(jkKeys.getStatus(),dto.getKeyStatus()) | 
|---|
|  |  |  | && (Constants.equalsInteger(dto.getKeyStatus(),Constants.ONE)||Constants.equalsInteger(dto.getKeyStatus(),Constants.TWO))){ | 
|---|
|  |  |  | && (Constants.equalsInteger(dto.getKeyStatus(),Constants.ONE)||Constants.equalsInteger(dto.getKeyStatus(),Constants.TWO))){ | 
|---|
|  |  |  | jkKeysMapper.update(null,new UpdateWrapper<JkKeys>().lambda() | 
|---|
|  |  |  | .set(JkKeys::getEditDate,DateUtil.getCurrDateTime()) | 
|---|
|  |  |  | .set(JkKeys::getStatus,dto.getKeyStatus()) | 
|---|
|  |  |  | .eq(JkKeys::getId,jkKeys.getId()) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | isChange = true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | jkCabinetLog.setType(Constants.ONE); | 
|---|
|  |  |  | jkCabinetLogMapper.insert(jkCabinetLog); | 
|---|
|  |  |  | //æ¥è¯¢é¥å对åºçååºäºé¥åçå¼é¨è®°å½ è¿è¡æ·»å å
³é¨è®°å½ä¸»é® | 
|---|
|  |  |  | if(isChange && Constants.equalsInteger(dto.getKeyStatus(),Constants.ONE)){ | 
|---|
|  |  |  | jkCabinetLogMapper.update(null,new UpdateWrapper<JkCabinetLog>().lambda() | 
|---|
|  |  |  | .set(JkCabinetLog::getCloseLogId,jkCabinetLog.getId()) | 
|---|
|  |  |  | .eq(JkCabinetLog::getKeyId,jkCabinetLog.getKeyId()) | 
|---|
|  |  |  | .eq(JkCabinetLog::getType,Constants.ZERO) | 
|---|
|  |  |  | .eq(JkCabinetLog::getKeyStatus,Constants.TWO) | 
|---|
|  |  |  | .isNotNull(JkCabinetLog::getCloseLogId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //æ¥è¯¢é¥åçå¼é¨è®°å½ è¿è¡æ·»å å
³é¨è®°å½ä¸»é® | 
|---|
|  |  |  | jkCabinetLogMapper.update(null,new UpdateWrapper<JkCabinetLog>().lambda() | 
|---|
|  |  |  | .set(JkCabinetLog::getCloseLogId,jkCabinetLog.getId()) | 
|---|
|  |  |  | .eq(JkCabinetLog::getKeyId,jkCabinetLog.getKeyId()) | 
|---|
|  |  |  | .eq(JkCabinetLog::getType,Constants.ZERO) | 
|---|
|  |  |  | .isNull(JkCabinetLog::getCloseLogId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | List<String> authMemberList =  Arrays.asList(jkCabinet.getAuthMemberId().split(",")); | 
|---|
|  |  |  | Boolean flag = true; | 
|---|
|  |  |  | for (String id:authMemberList) { | 
|---|
|  |  |  | if(id.equals(jkCabinet.getAuthMemberId())){ | 
|---|
|  |  |  | if(Arrays.asList(jkCabinet.getAuthMemberId().split(",")).contains(id)){ | 
|---|
|  |  |  | flag = false; | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | .leftJoin(JkKeys.class,JkKeys::getId,JkCabinetGrid::getKeyId) | 
|---|
|  |  |  | .eq(JkCabinetGrid::getIsdeleted,Constants.ZERO) | 
|---|
|  |  |  | .eq(JkCabinetGrid::getWorkingStatus,Constants.ZERO) | 
|---|
|  |  |  | .eq(JkCabinetGrid::getStatus,Constants.ZERO) | 
|---|
|  |  |  | .eq(JkCabinetGrid::getCabinetId,dto.getCabinetId()) | 
|---|
|  |  |  | .in(Constants.equalsInteger(dto.getType(),Constants.ONE),JkKeys::getStatus,Constants.TWO,Constants.THREE) | 
|---|
|  |  |  | .in(Constants.equalsInteger(dto.getType(),Constants.ZERO),JkKeys::getStatus,Constants.ONE) | 
|---|
|  |  |  | 
|---|
|  |  |  | for (JkCabinetGrid jkCabinetGrid:jkCabinetGridList) { | 
|---|
|  |  |  | jkCabinetGrid.setBindStatus(Objects.isNull(jkCabinetGrid.getKeyId())?Constants.ZERO:Constants.ONE); | 
|---|
|  |  |  | jkCabinetGrid.setKeyStatus(Objects.isNull(jkCabinetGrid.getKeyStatus())?Constants.ZERO:jkCabinetGrid.getKeyStatus()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return jkCabinetGridList; | 
|---|
|  |  |  | 
|---|
|  |  |  | jkCabinetLog.setAuthType(openGridDriverDTO.getAuthType()); | 
|---|
|  |  |  | jkCabinetLog.setMemberId(openGridDriverDTO.getMemberId()); | 
|---|
|  |  |  | jkCabinetLog.setType(Constants.ZERO); | 
|---|
|  |  |  | jkCabinetLog.setStatus(Constants.ZERO); | 
|---|
|  |  |  | if(Objects.nonNull(jkCabinetGrid.getKeyId())){ | 
|---|
|  |  |  | jkCabinetLog.setKeyId(jkCabinetGrid.getKeyId()); | 
|---|
|  |  |  | JkKeys jkKeys = jkKeysMapper.selectById(jkCabinetGrid.getKeyId()); | 
|---|
|  |  |  | if(Objects.nonNull(jkKeys)){ | 
|---|
|  |  |  | if(!Constants.equalsInteger(jkKeys.getStatus(),Constants.ZERO)){ | 
|---|
|  |  |  | 
|---|
|  |  |  | .last(" limit 1 ") | 
|---|
|  |  |  | ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //            if(Objects.nonNull(jkCabinetGrid)){ | 
|---|
|  |  |  | //                log.error("ææ ¼å¼é¨è¶
æ¶æªå
³éåè¦ä¿¡æ¯ï¼{}"+JSONObject.toJSONString(jkCabinetGrid)); | 
|---|
|  |  |  | //                Warning warning = warningMapper.selectOne(new QueryWrapper<Warning>().lambda() | 
|---|
|  |  |  | //                        .eq(Warning::getType,Constants.THREE).eq(Warning::getCode,Constants.WarningConfig.GRID_TIME_OUT_INFO.getKey()).eq(Warning::getIsdeleted,Constants.ZERO).last("limt 1")); | 
|---|
|  |  |  | //                if(Objects.isNull(warning)){ | 
|---|
|  |  |  | //                    return; | 
|---|
|  |  |  | //                } | 
|---|
|  |  |  | //                List<Member> memberList = this.getWarningList(warning); | 
|---|
|  |  |  | //                if(CollectionUtils.isEmpty(memberList)){ | 
|---|
|  |  |  | //                    return; | 
|---|
|  |  |  | //                } | 
|---|
|  |  |  | //                //åå¨å¼å¸¸æ¥å¿ | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //            }else{ | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //            } | 
|---|
|  |  |  | if(Objects.nonNull(jkCabinetGrid)){ | 
|---|
|  |  |  | log.error("ææ ¼å¼é¨è¶
æ¶æªå
³éåè¦ä¿¡æ¯ï¼{}"+JSONObject.toJSONString(jkCabinetGrid)); | 
|---|
|  |  |  | Warning warning = warningMapper.selectOne(new QueryWrapper<Warning>().lambda() | 
|---|
|  |  |  | .eq(Warning::getType,Constants.THREE).eq(Warning::getCode,Constants.WarningConfig.GRID_TIME_OUT_INFO.getKey()).eq(Warning::getIsdeleted,Constants.ZERO).last("limt 1")); | 
|---|
|  |  |  | if(Objects.isNull(warning)){ | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<Member> memberList = this.getWarningList(warning); | 
|---|
|  |  |  | if(CollectionUtils.isEmpty(memberList)){ | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //todo åå¨å¼å¸¸æ¥å¿ | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | public void alcoholTestAlarm(AlcoholTestAlarmDTO dto){ | 
|---|
|  |  |  | if(Objects.nonNull(dto) | 
|---|
|  |  |  | && Objects.nonNull(dto.getMemberId())){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | SystemUser systemUser = | 
|---|
|  |  |  | systemUserMapper.selectOne(new QueryWrapper<SystemUser>().lambda() | 
|---|
|  |  |  | .eq(SystemUser::getMemberId,dto.getMemberId()) | 
|---|
|  |  |  | 
|---|
|  |  |  | .last(" limit 1 ") | 
|---|
|  |  |  | ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //            Warning warning = warningMapper.selectOne(new QueryWrapper<Warning>().lambda() | 
|---|
|  |  |  | //                    .eq(Warning::getType,Constants.THREE).eq(Warning::getCode,Constants.WarningConfig.GRID_TIME_OUT_INFO.getKey()).eq(Warning::getIsdeleted,Constants.ZERO).last("limt 1")); | 
|---|
|  |  |  | //            if(Objects.isNull(warning)){ | 
|---|
|  |  |  | //                return; | 
|---|
|  |  |  | //            } | 
|---|
|  |  |  | //            List<Member> memberList = this.getWarningList(warning); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //            //åå¨å¼å¸¸æ¥å¿ | 
|---|
|  |  |  | //            if(Objects.nonNull(systemUser)){ | 
|---|
|  |  |  | //                log.error("叿ºé
ç²¾æ£æµï¼è¶
åºé
ç²¾å¼åè¦ä¿¡æ¯ï¼{}"+JSONObject.toJSONString(systemUser)); | 
|---|
|  |  |  | //            } | 
|---|
|  |  |  | Warning warning = warningMapper.selectOne(new QueryWrapper<Warning>().lambda() | 
|---|
|  |  |  | .eq(Warning::getType,Constants.THREE).eq(Warning::getCode,Constants.WarningConfig.KEY_TIME_OUT_BACK.getKey()).eq(Warning::getIsdeleted,Constants.ZERO).last("limt 1")); | 
|---|
|  |  |  | if(Objects.isNull(warning)){ | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<Member> memberList = this.getWarningList(warning); | 
|---|
|  |  |  | if(CollectionUtils.isEmpty(memberList)){ | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //todo åå¨å¼å¸¸æ¥å¿ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //åå¨å¼å¸¸æ¥å¿ | 
|---|
|  |  |  | if(Objects.nonNull(systemUser)){ | 
|---|
|  |  |  | log.error("叿ºé
ç²¾æ£æµï¼è¶
åºé
ç²¾å¼åè¦ä¿¡æ¯ï¼{}"+JSONObject.toJSONString(systemUser)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | .eq(Objects.nonNull(model.getKeyId()),JkCabinetLog::getKeyId,model.getKeyId()) | 
|---|
|  |  |  | .eq(Objects.nonNull(model.getAuthType()),JkCabinetLog::getAuthType,model.getAuthType()) | 
|---|
|  |  |  | .eq(Objects.nonNull(model.getStatus()),JkCabinetLog::getStatus,model.getStatus()) | 
|---|
|  |  |  | .eq(Objects.nonNull(model.getType()),JkCabinetLog::getType,model.getType()) | 
|---|
|  |  |  | .in(Objects.nonNull(model.getType())&&Constants.equalsInteger(model.getType(),Constants.ONE),JkCabinetLog::getType,"1,2") | 
|---|
|  |  |  | .eq(JkCabinetLog::getIsdeleted, Constants.ZERO) | 
|---|
|  |  |  | .orderByDesc(JkCabinetLog::getCreateDate); | 
|---|
|  |  |  | IPage<JkCabinetLog>  iPage = jkCabinetLogMapper.selectJoinPage(page,JkCabinetLog.class,wrapper); | 
|---|
|  |  |  | 
|---|
|  |  |  | cabinetInfoVO.setCabinetConfigDataVO(cabinetConfigDataVO); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | cabinetInfoVO.setLinkPhone("18156091665"); | 
|---|
|  |  |  | cabinetInfoVO.setLinkPhone(systemDictDataBiz.queryByCode(Constants.CABINET_CONFIG,Constants.LINK_PHONE).getCode()); | 
|---|
|  |  |  | List<Category> categoryList = categoryMapper.selectList(new QueryWrapper<Category>().lambda() | 
|---|
|  |  |  | .eq(Category::getIsdeleted,Constants.ZERO) | 
|---|
|  |  |  | .eq(Category::getStatus,Constants.ZERO) | 
|---|
|  |  |  | 
|---|
|  |  |  | .leftJoin(Member.class,Member::getId,JkIccard::getMemberId) | 
|---|
|  |  |  | .eq(JkIccard::getIsdeleted,Constants.ZERO) | 
|---|
|  |  |  | .eq(Objects.nonNull(model.getStatus()),JkIccard::getStatus,model.getStatus()) | 
|---|
|  |  |  | .eq(Objects.nonNull(model.getUserType()),JkIccard::getUserType,model.getUserType()) | 
|---|
|  |  |  | .like(StringUtils.isNotBlank(model.getCode()),JkIccard::getCode,model.getCode()) | 
|---|
|  |  |  | .like(StringUtils.isNotBlank(model.getMemberName()),Member::getName,model.getMemberName()) | 
|---|
|  |  |  | .orderByDesc(JkIccard::getCreateDate) | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | package com.doumee.service.business.impl; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.doumee.core.utils.Utils; | 
|---|
|  |  |  | import com.doumee.dao.business.JkInterfaceLogMapper; | 
|---|
|  |  |  | import com.doumee.dao.business.model.InterfaceLog; | 
|---|
|  |  |  | import com.doumee.dao.business.model.JkInterfaceLog; | 
|---|
|  |  |  | import com.doumee.service.business.JkInterfaceLogService; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.metadata.IPage; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 
|---|
|  |  |  | import com.doumee.service.business.third.model.PageData; | 
|---|
|  |  |  | import com.doumee.service.business.third.model.PageWrap; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.stereotype.Service; | 
|---|
|  |  |  | import org.springframework.util.CollectionUtils; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * é¥åææ¥å£äº¤äºè®°å½Serviceå®ç° | 
|---|
|  |  |  | * @author æ±è¹è¹ | 
|---|
|  |  |  | * @date 2025/10/28 16:26 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Service | 
|---|
|  |  |  | public class JkInterfaceLogServiceImpl implements JkInterfaceLogService { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private JkInterfaceLogMapper jkInterfaceLogMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public Integer create(JkInterfaceLog jkInterfaceLog) { | 
|---|
|  |  |  | jkInterfaceLogMapper.insert(jkInterfaceLog); | 
|---|
|  |  |  | return jkInterfaceLog.getId(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void deleteById(Integer id) { | 
|---|
|  |  |  | jkInterfaceLogMapper.deleteById(id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void delete(JkInterfaceLog jkInterfaceLog) { | 
|---|
|  |  |  | UpdateWrapper<JkInterfaceLog> deleteWrapper = new UpdateWrapper<>(jkInterfaceLog); | 
|---|
|  |  |  | jkInterfaceLogMapper.delete(deleteWrapper); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void deleteByIdInBatch(List<Integer> ids) { | 
|---|
|  |  |  | if (CollectionUtils.isEmpty(ids)) { | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | jkInterfaceLogMapper.deleteBatchIds(ids); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void updateById(JkInterfaceLog jkInterfaceLog) { | 
|---|
|  |  |  | jkInterfaceLogMapper.updateById(jkInterfaceLog); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void updateByIdInBatch(List<JkInterfaceLog> jkInterfaceLogs) { | 
|---|
|  |  |  | if (CollectionUtils.isEmpty(jkInterfaceLogs)) { | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | for (JkInterfaceLog jkInterfaceLog: jkInterfaceLogs) { | 
|---|
|  |  |  | this.updateById(jkInterfaceLog); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public JkInterfaceLog findById(Integer id) { | 
|---|
|  |  |  | return jkInterfaceLogMapper.selectById(id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public JkInterfaceLog findOne(JkInterfaceLog jkInterfaceLog) { | 
|---|
|  |  |  | QueryWrapper<JkInterfaceLog> wrapper = new QueryWrapper<>(jkInterfaceLog); | 
|---|
|  |  |  | return jkInterfaceLogMapper.selectOne(wrapper); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public List<JkInterfaceLog> findList(JkInterfaceLog jkInterfaceLog) { | 
|---|
|  |  |  | QueryWrapper<JkInterfaceLog> wrapper = new QueryWrapper<>(jkInterfaceLog); | 
|---|
|  |  |  | return jkInterfaceLogMapper.selectList(wrapper); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public PageData<JkInterfaceLog> findPage(PageWrap<JkInterfaceLog> pageWrap) { | 
|---|
|  |  |  | IPage<JkInterfaceLog> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); | 
|---|
|  |  |  | QueryWrapper<JkInterfaceLog> queryWrapper = new QueryWrapper<>(); | 
|---|
|  |  |  | Utils.MP.blankToNull(pageWrap.getModel()); | 
|---|
|  |  |  | if (pageWrap.getModel().getId() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getId, pageWrap.getModel().getId()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getCreator() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getCreator, pageWrap.getModel().getCreator()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getCreateDate() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().ge(JkInterfaceLog::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); | 
|---|
|  |  |  | queryWrapper.lambda().le(JkInterfaceLog::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getEditor() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getEditor, pageWrap.getModel().getEditor()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getEditDate() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().ge(JkInterfaceLog::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); | 
|---|
|  |  |  | queryWrapper.lambda().le(JkInterfaceLog::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getStartDate() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().ge(JkInterfaceLog::getCreateDate, pageWrap.getModel().getStartDate()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getEndDate() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().le(JkInterfaceLog::getCreateDate, pageWrap.getModel().getEndDate()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getIsdeleted() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getIsdeleted, pageWrap.getModel().getIsdeleted()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getRemark() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getRemark, pageWrap.getModel().getRemark()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getType() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getType, pageWrap.getModel().getType()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getName() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getName, pageWrap.getModel().getName()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getUrl() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getUrl, pageWrap.getModel().getUrl()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getRequest() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getRequest, pageWrap.getModel().getRequest()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getRepose() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getRepose, pageWrap.getModel().getRepose()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getSuccess() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getSuccess, pageWrap.getModel().getSuccess()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getPlat() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getPlat, pageWrap.getModel().getPlat()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getObjType() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getObjType, pageWrap.getModel().getObjType()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (pageWrap.getModel().getObjId() != null) { | 
|---|
|  |  |  | queryWrapper.lambda().eq(JkInterfaceLog::getObjId, pageWrap.getModel().getObjId()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | for(PageWrap.SortData sortData: pageWrap.getSorts()) { | 
|---|
|  |  |  | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { | 
|---|
|  |  |  | queryWrapper.orderByDesc(sortData.getProperty()); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | queryWrapper.orderByAsc(sortData.getProperty()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return PageData.from(jkInterfaceLogMapper.selectPage(page, queryWrapper)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public long count(JkInterfaceLog jkInterfaceLog) { | 
|---|
|  |  |  | QueryWrapper<JkInterfaceLog> wrapper = new QueryWrapper<>(jkInterfaceLog); | 
|---|
|  |  |  | return jkInterfaceLogMapper.selectCount(wrapper); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|