| | |
| | | package com.fzzy.igds.service; |
| | | |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.constant.*; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.work.data.WorkStatus; |
| | |
| | | list.add(new SysDictData("åºåº", Constant.TYPE_OUT)); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> getBizType() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData(BizTypeEnum.SYS.getMsg(), BizTypeEnum.SYS.getCode())); |
| | | list.add(new SysDictData(BizTypeEnum.INOUT.getMsg(), BizTypeEnum.INOUT.getCode())); |
| | | list.add(new SysDictData(BizTypeEnum.GRAIN.getMsg(), BizTypeEnum.GRAIN.getCode())); |
| | | list.add(new SysDictData(BizTypeEnum.SECURITY.getMsg(), BizTypeEnum.SECURITY.getCode())); |
| | | list.add(new SysDictData(BizTypeEnum.SUPERVISION.getMsg(), BizTypeEnum.SUPERVISION.getCode())); |
| | | list.add(new SysDictData(BizTypeEnum.SCREEN.getMsg(), BizTypeEnum.SCREEN.getCode())); |
| | | return list; |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.timer; |
| | | |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.ruoyi.common.config.FrameworkConfig; |
| | | import com.ruoyi.common.enums.BusinessStatus; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.enums.OperatorType; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.domain.SysCompany; |
| | | import com.ruoyi.system.domain.SysOperLog; |
| | | import com.ruoyi.system.service.ISysCompanyService; |
| | | import com.ruoyi.system.service.ISysOperLogService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @EnableScheduling |
| | | @Slf4j |
| | | @Component |
| | | public class SystemScheduled { |
| | | |
| | | |
| | | @Resource |
| | | private ISysOperLogService operLogService; |
| | | |
| | | @Resource |
| | | private ISysCompanyService companyService; |
| | | |
| | | @Resource |
| | | private ISysOperLogService sysOperLogService; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @Scheduled(cron = "0 0 1 */30 * ?") |
| | | public void cronJob1() { |
| | | try { |
| | | log.info("------------æ¯30天ç忍1ç¹æ§è¡æ¸
餿使¥å¿å¼å§------------"); |
| | | //æ§è¡æ¸
餿¥å¿æ¹æ³ |
| | | doCronHob1(); |
| | | //æ·»å æ¸
餿¥å¿è®°å½ |
| | | SysOperLog operLog = new SysOperLog(); |
| | | operLog.setStatus(BusinessStatus.SUCCESS.ordinal()); |
| | | operLog.setMethod("com.fzzy.igds.timer.SystemScheduled.cronJob1()"); |
| | | operLog.setCompanyId(FrameworkConfig.getCompanyId()); |
| | | operLog.setBusinessType(BusinessType.CLEAN.ordinal()); |
| | | operLog.setTitle("宿¶ä»»å¡ï¼å®æ¶æ¸
餿使¥å¿"); |
| | | operLog.setOperatorType(OperatorType.MANAGE.ordinal()); |
| | | operLog.setBizType(BizTypeEnum.SYS.getCode()); |
| | | operLog.setOperName(FrameworkConfig.getName()); |
| | | operLog.setOperTime(new Date()); |
| | | sysOperLogService.insertOperlog(operLog); |
| | | log.info("------------æ¯30天ç忍1ç¹æ§è¡æ¸
餿使¥å¿ç»æ------------"); |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage(), e); |
| | | } |
| | | |
| | | } |
| | | |
| | | public void doCronHob1() { |
| | | |
| | | //è·åç³»ç»ä¸ææçcompanyId |
| | | List<SysCompany> sysCompanies = companyService.selectAll(); |
| | | for (SysCompany sysCompany : sysCompanies) { |
| | | if (StringUtils.isNotBlank(sysCompany.getCompanyId())) { |
| | | log.info("------------æ¸
é¤ç»ç»ç¼ç ã{}ãæä½æ¥å¿------------", sysCompany.getCompanyId()); |
| | | operLogService.cleanOperLog(sysCompany.getCompanyId()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.data.BaseResp; |
| | | import com.fzzy.igds.data.IgdsBaseParam; |
| | | import com.fzzy.igds.domain.Bank; |
| | | import com.fzzy.igds.service.BankService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | * @return |
| | | */ |
| | | @Expose |
| | | @Log(title = "é¶è¡ç®¡ç", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SYS) |
| | | public BaseResp delete(Bank bank){ |
| | | if(StringUtils.isNotEmpty(bank.getId())) return bankService.deleteData(bank); |
| | | return BaseResp.success(); |
| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.camera.data.ydqly.YdQlyNode; |
| | | import com.fzzy.igds.domain.CameraMedia; |
| | | import com.fzzy.igds.service.CameraMediaService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | * @return å¼å¸¸ä¿¡æ¯ |
| | | */ |
| | | @Expose |
| | | @Log(title = "æµåªä½é
ç½®", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SECURITY) |
| | | public String delData(CameraMedia data) { |
| | | |
| | | if (StringUtils.isEmpty(data.getId())) { |
| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.domain.DepotConf; |
| | | import com.fzzy.igds.service.DepotConfService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | * @param conf |
| | | */ |
| | | @Expose |
| | | @Log(title = "ç²®æ
é
ç½®", businessType = BusinessType.DELETE,bizType = BizTypeEnum.GRAIN) |
| | | public void delDepotConf(DepotConf conf) { |
| | | DepotConf depotConf = new DepotConf(); |
| | | BeanUtils.copyProperties(conf, depotConf); |
| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.domain.Depot; |
| | | import com.fzzy.igds.service.DepotService; |
| | | import com.fzzy.igds.service.PledgeContractService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | */ |
| | | @Expose |
| | | @Transactional |
| | | @Log(title = "åºåºç®¡ç", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SYS) |
| | | public void deleteDepot(Depot data) { |
| | | Depot depot = new Depot(); |
| | | BeanUtils.copyProperties(data, depot); |
| | |
| | | import com.bstek.dorado.data.entity.EntityState; |
| | | import com.bstek.dorado.data.entity.EntityUtils; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.data.DeviceIotParam; |
| | | import com.fzzy.igds.domain.DeviceIot; |
| | | import com.fzzy.igds.service.DeviceIotService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | |
| | | @Component |
| | | public class DeviceIotPR { |
| | | |
| | | @Resource |
| | | private DeviceIotService deviceIotService; |
| | | @Resource |
| | | private DeviceIotService deviceIotService; |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤,å°æä½ä¿¡æ¯è°æ´ä¸ºç©º |
| | | * |
| | | * deviceIotPR#loadDeviceIotPage |
| | | * |
| | | * @param page |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public void loadDeviceIotPage(Page<DeviceIot> page, DeviceIotParam param) { |
| | | com.baomidou.mybatisplus.extension.plugins.pagination.Page<DeviceIot> corePage = new com.baomidou.mybatisplus.extension.plugins.pagination.Page<>(page.getPageNo(), page.getPageSize()); |
| | | /** |
| | | * æ¥è¯¢è®¾å¤,å°æä½ä¿¡æ¯è°æ´ä¸ºç©º |
| | | * <p> |
| | | * deviceIotPR#loadDeviceIotPage |
| | | * |
| | | * @param page |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public void loadDeviceIotPage(Page<DeviceIot> page, DeviceIotParam param) { |
| | | com.baomidou.mybatisplus.extension.plugins.pagination.Page<DeviceIot> corePage = new com.baomidou.mybatisplus.extension.plugins.pagination.Page<>(page.getPageNo(), page.getPageSize()); |
| | | |
| | | if(null == param) { |
| | | param = new DeviceIotParam(); |
| | | } |
| | | deviceIotService.listPageData(corePage, param); |
| | | if (null == param) { |
| | | param = new DeviceIotParam(); |
| | | } |
| | | deviceIotService.listPageData(corePage, param); |
| | | |
| | | // éæ°å°è£
|
| | | page.setEntities(corePage.getRecords()); |
| | | page.setEntityCount(Integer.parseInt(String.valueOf(corePage.getTotal()))); |
| | | } |
| | | // éæ°å°è£
|
| | | page.setEntities(corePage.getRecords()); |
| | | page.setEntityCount(Integer.parseInt(String.valueOf(corePage.getTotal()))); |
| | | } |
| | | |
| | | /** |
| | | * ä¿å devicePR#saveAll |
| | | * |
| | | * @param depotDeviceIots |
| | | * @return |
| | | */ |
| | | @DataResolver |
| | | @Transactional |
| | | public String saveAll(List<DeviceIot> depotDeviceIots) { |
| | | String msg = ""; |
| | | DeviceIot deviceIot; |
| | | for (DeviceIot depotDeviceIot : depotDeviceIots) { |
| | | EntityState state = EntityUtils.getState(depotDeviceIot); |
| | | deviceIot = new DeviceIot(); |
| | | BeanUtils.copyProperties(depotDeviceIot, deviceIot); |
| | | if (state == EntityState.NEW) { |
| | | deviceIotService.updateDeviceIot(deviceIot); |
| | | msg = "æ·»å æå!"; |
| | | } |
| | | if (state == EntityState.DELETED) { |
| | | deviceIotService.delDepotDeviceIot(deviceIot); |
| | | msg = "å 餿å!"; |
| | | } |
| | | if (state == EntityState.MODIFIED) { |
| | | deviceIotService.updateDeviceIot(deviceIot); |
| | | msg = "ä¿®æ¹æå!"; |
| | | } |
| | | } |
| | | return msg; |
| | | } |
| | | |
| | | /** |
| | | * devicePR#refreshCache |
| | | */ |
| | | @Expose |
| | | public void refreshCache(){ |
| | | deviceIotService.refreshCache(null); |
| | | } |
| | | /** |
| | | * ä¿å devicePR#saveAll |
| | | * |
| | | * @param depotDeviceIots |
| | | * @return |
| | | */ |
| | | @DataResolver |
| | | @Transactional |
| | | @Log(title = "Iot设å¤é
ç½®", businessType = BusinessType.OTHER, bizType = BizTypeEnum.SYS) |
| | | public String saveAll(List<DeviceIot> depotDeviceIots) { |
| | | String msg = ""; |
| | | DeviceIot deviceIot; |
| | | for (DeviceIot depotDeviceIot : depotDeviceIots) { |
| | | EntityState state = EntityUtils.getState(depotDeviceIot); |
| | | deviceIot = new DeviceIot(); |
| | | BeanUtils.copyProperties(depotDeviceIot, deviceIot); |
| | | if (state == EntityState.NEW) { |
| | | deviceIotService.updateDeviceIot(deviceIot); |
| | | msg = "æ·»å æå!"; |
| | | } |
| | | if (state == EntityState.DELETED) { |
| | | deviceIotService.delDepotDeviceIot(deviceIot); |
| | | msg = "å 餿å!"; |
| | | } |
| | | if (state == EntityState.MODIFIED) { |
| | | deviceIotService.updateDeviceIot(deviceIot); |
| | | msg = "ä¿®æ¹æå!"; |
| | | } |
| | | } |
| | | return msg; |
| | | } |
| | | |
| | | /** |
| | | * devicePR#refreshCache |
| | | */ |
| | | @Expose |
| | | public void refreshCache() { |
| | | deviceIotService.refreshCache(null); |
| | | } |
| | | } |
| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.domain.DeviceSer; |
| | | import com.fzzy.igds.service.DeviceSerService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | */ |
| | | @Expose |
| | | @Transactional |
| | | @Log(title = "åæºé
ç½®", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SYS) |
| | | public void delSerById(String id) { |
| | | |
| | | DeviceSer ser = deviceSerService.getDataById(null, id); |
| | |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.domain.DicArea; |
| | | import com.fzzy.igds.service.DicAreaService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @Expose |
| | | @Log(title = "åºååå
¸", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SYS) |
| | | public String delDicArea(DicArea data) { |
| | | |
| | | DicArea dicArea = new DicArea(); |
| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.domain.FoodPrice; |
| | | import com.fzzy.igds.service.FoodPriceService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @Expose |
| | | @Log(title = "ç²®åºä»·æ ¼", businessType = BusinessType.DELETE,bizType = BizTypeEnum.INOUT) |
| | | public String delData(FoodPrice data) { |
| | | FoodPrice foodPrice = new FoodPrice(); |
| | | BeanUtils.copyProperties(data, foodPrice); |
| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.domain.GatewaySer; |
| | | import com.fzzy.igds.service.GatewaySerService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | */ |
| | | @Expose |
| | | @Transactional |
| | | @Log(title = "ç½å
³é
ç½®", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SYS) |
| | | public void delSerById(String id) { |
| | | GatewaySer ser = gatewaySerService.getById(id); |
| | | gatewaySerService.delSer(ser); |
| | |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.service.InoutConfService; |
| | | import com.fzzy.igds.domain.InoutConf; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import javax.annotation.Resource; |
| | |
| | | * @return |
| | | */ |
| | | @Expose |
| | | @Log(title = "åºå
¥åºé
ç½®", businessType = BusinessType.DELETE,bizType = BizTypeEnum.INOUT) |
| | | public String delData(InoutConf data) { |
| | | InoutConf inoutConf = new InoutConf(); |
| | | BeanUtils.copyProperties(data, inoutConf); |
| | |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.data.BaseResp; |
| | | import com.fzzy.igds.data.InoutData; |
| | |
| | | import com.fzzy.igds.service.InoutNoticeService; |
| | | import com.fzzy.igds.service.InoutRecordService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | |
| | | */ |
| | | @DataResolver |
| | | @Transactional |
| | | @Log(title = "åºå
¥åºæ°æ®æ§è¡å¼å¸¸ç»æ¢", businessType = BusinessType.UPDATE,bizType = BizTypeEnum.INOUT) |
| | | public String errorInoutData(InoutRecord data) { |
| | | return inoutRecordService.errorInoutData(data); |
| | | } |
| | |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.data.IgdsBaseParam; |
| | | import com.fzzy.igds.domain.InoutLossOver; |
| | | import com.fzzy.igds.service.InoutLossOverService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import javax.annotation.Resource; |
| | |
| | | * @return |
| | | */ |
| | | @Expose |
| | | @Log(title = "æç管ç", businessType = BusinessType.DELETE,bizType = BizTypeEnum.INOUT) |
| | | public String delData(InoutLossOver data) { |
| | | InoutLossOver item = new InoutLossOver(); |
| | | BeanUtils.copyProperties(data, item); |
| | |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.data.BaseResp; |
| | | import com.fzzy.igds.data.NoticeDto; |
| | |
| | | import com.fzzy.igds.domain.InoutNoticeOut; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.work.data.WorkStatus; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | * inoutNoticePR#delDataIn |
| | | */ |
| | | @Expose |
| | | @Log(title = "éç¥å管ç", businessType = BusinessType.DELETE,bizType = BizTypeEnum.INOUT) |
| | | public String delDataIn(InoutNoticeIn data) { |
| | | InoutNoticeIn inoutNoticeIn = new InoutNoticeIn(); |
| | | BeanUtils.copyProperties(data, inoutNoticeIn); |
| | |
| | | * inoutNoticePR#delDataOut |
| | | */ |
| | | @Expose |
| | | public String delDataOut(InoutNoticeOut data) { |
| | | @Log(title = "éç¥å管ç", businessType = BusinessType.DELETE,bizType = BizTypeEnum.INOUT) |
| | | public String delDataOut(InoutNoticeOut data) { |
| | | InoutNoticeOut inoutNoticeOut = new InoutNoticeOut(); |
| | | BeanUtils.copyProperties(data, inoutNoticeOut); |
| | | return inoutNoticeService.delDataOut(inoutNoticeOut); |
| | |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.domain.InoutStockChange; |
| | | import com.fzzy.igds.service.InoutStockChangeService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | * @return |
| | | */ |
| | | @Expose |
| | | @Log(title = "åä»ç§»åº", businessType = BusinessType.DELETE,bizType = BizTypeEnum.INOUT) |
| | | public String delData(InoutStockChange data) { |
| | | InoutStockChange item = new InoutStockChange(); |
| | | BeanUtils.copyProperties(data, item); |
| | |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.data.BaseResp; |
| | | import com.fzzy.igds.data.IgdsBaseParam; |
| | | import com.fzzy.igds.data.PatrolSuperData; |
| | |
| | | import com.fzzy.igds.service.CoreDeptService; |
| | | import com.fzzy.igds.service.PatrolService; |
| | | import com.fzzy.igds.utils.DateUtil; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | * @return |
| | | */ |
| | | @Expose |
| | | @Log(title = "å·¡æ£é
ç½®", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SECURITY) |
| | | public BaseResp deletePatrolConf(PatrolConf bank){ |
| | | if(StringUtils.isNotEmpty(bank.getId())) return patrolService.deletePatrolConf(bank); |
| | | return BaseResp.success(); |
| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.data.BaseResp; |
| | | import com.fzzy.igds.data.IgdsBaseParam; |
| | | import com.fzzy.igds.domain.PledgeContract; |
| | | import com.fzzy.igds.service.PledgeContractService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | * @param pledgeContract |
| | | * @return |
| | | */ |
| | | @Log( title = "è´¨æ¼åå", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SUPERVISION) |
| | | @Expose |
| | | public BaseResp delete(PledgeContract pledgeContract) { |
| | | if (StringUtils.isNotEmpty(pledgeContract.getId())) return pledgeContractService.deleteData(pledgeContract); |
| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.domain.QuantityConf; |
| | | import com.fzzy.igds.service.DepotService; |
| | | import com.fzzy.igds.service.QuantityService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import javax.annotation.Resource; |
| | |
| | | * @return |
| | | */ |
| | | @Expose |
| | | @Log(title = "å 餿°éçæµåæ°é
ç½®", businessType = BusinessType.DELETE,bizType = BizTypeEnum.GRAIN) |
| | | public String delQuantityConf(QuantityConf conf) { |
| | | QuantityConf quantityConf = new QuantityConf(); |
| | | BeanUtils.copyProperties(conf, quantityConf); |
| | |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.camera.ApiCameraManager; |
| | | import com.fzzy.igds.camera.data.ApiCameraData; |
| | | import com.fzzy.igds.camera.data.ApiCameraResp; |
| | | import com.fzzy.igds.data.IgdsBaseParam; |
| | | import com.fzzy.igds.domain.Camera; |
| | | import com.fzzy.igds.service.SecCameraService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | * @return |
| | | */ |
| | | @Expose |
| | | @Log(title = "çæ§é
ç½®", businessType = BusinessType.DELETE, bizType = BizTypeEnum.SECURITY) |
| | | public String delCamera(Camera data) { |
| | | Camera secCamera = new Camera(); |
| | | BeanUtils.copyProperties(data, secCamera); |
| | |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.entity.EntityState; |
| | | import com.bstek.dorado.data.entity.EntityUtils; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.constant.OrderRespEnum; |
| | | import com.fzzy.igds.domain.Slogan; |
| | |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.igds.websocket.WebSocketPacket; |
| | | import com.fzzy.igds.websocket.WebSocketServer; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | * @return |
| | | */ |
| | | @Expose |
| | | public void delData(Slogan data) { |
| | | @Log(title = "大屿 è¯", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SYS) |
| | | public void delData(Slogan data) { |
| | | Slogan slogan = new Slogan(); |
| | | BeanUtils.copyProperties(data, slogan); |
| | | sloganService.delData(slogan); |
| | |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.data.BaseResp; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.work.domain.WorkOrder; |
| | |
| | | import com.fzzy.work.service.WorkOrderConfService; |
| | | import com.fzzy.work.service.WorkOrderProcessService; |
| | | import com.fzzy.work.service.WorkOrderService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | | |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | * |
| | | */ |
| | | @Expose |
| | | @Log(title = "å·¥åé
ç½®", businessType = BusinessType.DELETE,bizType = BizTypeEnum.INOUT) |
| | | public BaseResp deleteConf(WorkOrderConf data) { |
| | | WorkOrderConf newData = new WorkOrderConf(); |
| | | BeanUtils.copyProperties(data, newData); |
| | |
| | | package com.fzzy.grain; |
| | | |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.grain.manager.GrainManager; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.constant.DepotType; |
| | |
| | | import com.fzzy.igds.response.GrainResponse; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.common.manager.CommonManager; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | * |
| | | * @return |
| | | */ |
| | | @Log(title = "æ¸
餿§è¡è®°å½", businessType = BusinessType.CLEAN,bizType = BizTypeEnum.GRAIN) |
| | | @ResponseBody |
| | | @RequestMapping("/clean-order-list") |
| | | public PageResponse<String> cleanOrderList(@RequestBody IgdsBaseParam param) { |
| | |
| | | package com.fzzy.sys.controller.monitor; |
| | | |
| | | import com.fzzy.igds.service.DicService; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @Autowired |
| | | private ISysOperLogService operLogService; |
| | | |
| | | @Autowired |
| | | private DicService dicService; |
| | | |
| | | @RequiresPermissions("monitor:operlog:view") |
| | | @GetMapping() |
| | | public String operlog() { |
| | | public String operlog(ModelMap mmap) { |
| | | mmap.put("bizTypeDatas", dicService.getBizType()); |
| | | return prefix + "/operlog"; |
| | | } |
| | | |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
| | | <head> |
| | | <th:block th:include="include :: header('æä½æ¥å¿å表')" /> |
| | | <th:block th:include="include :: bootstrap-select-css" /> |
| | | <th:block th:include="include :: header('æä½æ¥å¿å表')"/> |
| | | <th:block th:include="include :: bootstrap-select-css"/> |
| | | </head> |
| | | <body class="gray-bg"> |
| | | <div class="container-div"> |
| | | <div class="row"> |
| | | <div class="col-sm-12 search-collapse"> |
| | | <form id="operlog-form"> |
| | | <div class="select-list"> |
| | | <ul> |
| | | <li> |
| | | <label>æä½å°åï¼</label><input type="text" name="operIp"/> |
| | | </li> |
| | | <li> |
| | | <label>ç³»ç»æ¨¡åï¼ </label><input type="text" name="title"/> |
| | | </li> |
| | | <li> |
| | | <label>æä½äººåï¼ </label><input type="text" name="operName"/> |
| | | </li> |
| | | <li class="select-selectpicker"> |
| | | <label>æä½ç±»åï¼ </label><select id="businessTypes" name="businessTypes" th:with="type=${@dict.getType('sys_oper_type')}" class="selectpicker" data-none-selected-text="è¯·éæ©" multiple> |
| | | <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
| | | </select> |
| | | </li> |
| | | <li> |
| | | <label>æä½ç¶æï¼</label><select name="status" th:with="type=${@dict.getType('sys_common_status')}"> |
| | | <option value="">ææ</option> |
| | | <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
| | | </select> |
| | | </li> |
| | | <li class="select-time"> |
| | | <label>æä½æ¶é´ï¼ </label> |
| | | <input type="text" class="time-input" id="startTime" placeholder="å¼å§æ¶é´"/> |
| | | <span>-</span> |
| | | <input type="text" class="time-input" id="endTime" placeholder="ç»ææ¶é´"/> |
| | | </li> |
| | | <li> |
| | | <a class="btn btn-primary btn-rounded btn-sm" onclick="searchPre()"><i class="fa fa-search"></i> æç´¢</a> |
| | | <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPre()"><i class="fa fa-refresh"></i> éç½®</a> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | |
| | | <div class="btn-group-sm" id="toolbar" role="group"> |
| | | <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="monitor:operlog:remove"> |
| | | <i class="fa fa-remove"></i> å é¤ |
| | | </a> |
| | | <a class="btn btn-danger" onclick="$.operate.clean()" shiro:hasPermission="monitor:operlog:remove"> |
| | | <i class="fa fa-trash"></i> æ¸
空 |
| | | </a> |
| | | <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="monitor:operlog:export"> |
| | | <i class="fa fa-download"></i> å¯¼åº |
| | | </a> |
| | | </div> |
| | | |
| | | <div class="col-sm-12 select-table table-striped"> |
| | | <table id="bootstrap-table"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <th:block th:include="include :: footer" /> |
| | | <th:block th:include="include :: bootstrap-select-js" /> |
| | | <script th:inline="javascript"> |
| | | var detailFlag = [[${@permission.hasPermi('monitor:operlog:detail')}]]; |
| | | var datas = [[${@dict.getType('sys_oper_type')}]]; |
| | | var prefix = ctx + "monitor/operlog"; |
| | | <div class="container-div"> |
| | | <div class="row"> |
| | | <div class="col-sm-12 search-collapse"> |
| | | <form id="operlog-form"> |
| | | <div class="select-list"> |
| | | <ul> |
| | | <li> |
| | | <label>æä½å°åï¼</label><input type="text" name="operIp"/> |
| | | </li> |
| | | <li> |
| | | <label>ç³»ç»æ¨¡åï¼ </label><input type="text" name="title"/> |
| | | </li> |
| | | <li class="select-selectpicker"> |
| | | <label>ä¸å¡ç±»åï¼ </label> |
| | | <select id="bizType" name="bizType" |
| | | class="selectpicker" data-none-selected-text="è¯·éæ©"> |
| | | <option value="">ææ</option> |
| | | <option th:each="dict : ${bizTypeDatas}" th:text="${dict.dictLabel}" |
| | | th:value="${dict.dictValue}"></option> |
| | | </select> |
| | | </li> |
| | | <li> |
| | | <label>æä½äººåï¼ </label><input type="text" name="operName"/> |
| | | </li> |
| | | <li class="select-selectpicker"> |
| | | <label>æä½ç±»åï¼ </label><select id="businessTypes" name="businessTypes" |
| | | th:with="type=${@dict.getType('sys_oper_type')}" |
| | | class="selectpicker" data-none-selected-text="è¯·éæ©" |
| | | multiple> |
| | | <option th:each="dict : ${type}" th:text="${dict.dictLabel}" |
| | | th:value="${dict.dictValue}"></option> |
| | | </select> |
| | | </li> |
| | | <li> |
| | | <label>æä½ç¶æï¼</label><select name="status" |
| | | th:with="type=${@dict.getType('sys_common_status')}"> |
| | | <option value="">ææ</option> |
| | | <option th:each="dict : ${type}" th:text="${dict.dictLabel}" |
| | | th:value="${dict.dictValue}"></option> |
| | | </select> |
| | | </li> |
| | | <li class="select-time"> |
| | | <label>æä½æ¶é´ï¼ </label> |
| | | <input type="text" class="time-input" id="startTime" placeholder="å¼å§æ¶é´"/> |
| | | <span>-</span> |
| | | <input type="text" class="time-input" id="endTime" placeholder="ç»ææ¶é´"/> |
| | | </li> |
| | | <li> |
| | | <a class="btn btn-primary btn-rounded btn-sm" onclick="searchPre()"><i |
| | | class="fa fa-search"></i> æç´¢</a> |
| | | <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPre()"><i |
| | | class="fa fa-refresh"></i> éç½®</a> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | |
| | | $(function() { |
| | | var options = { |
| | | url: prefix + "/list", |
| | | cleanUrl: prefix + "/clean", |
| | | detailUrl: prefix + "/detail/{id}", |
| | | removeUrl: prefix + "/remove", |
| | | exportUrl: prefix + "/export", |
| | | queryParams: queryParams, |
| | | sortName: "operTime", |
| | | sortOrder: "desc", |
| | | modalName: "æä½æ¥å¿", |
| | | escape: true, |
| | | showPageGo: true, |
| | | rememberSelected: true, |
| | | columns: [{ |
| | | field: 'state', |
| | | checkbox: true |
| | | }, |
| | | { |
| | | field: 'operId', |
| | | title: 'æ¥å¿ç¼å·' |
| | | }, |
| | | { |
| | | field: 'title', |
| | | title: 'ç³»ç»æ¨¡å', |
| | | formatter: function(value, row, index) { |
| | | <div class="btn-group-sm" id="toolbar" role="group"> |
| | | <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" |
| | | shiro:hasPermission="monitor:operlog:remove"> |
| | | <i class="fa fa-remove"></i> å é¤ |
| | | </a> |
| | | <a class="btn btn-danger" onclick="$.operate.clean()" shiro:hasPermission="monitor:operlog:remove"> |
| | | <i class="fa fa-trash"></i> æ¸
空 |
| | | </a> |
| | | <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="monitor:operlog:export"> |
| | | <i class="fa fa-download"></i> å¯¼åº |
| | | </a> |
| | | </div> |
| | | |
| | | <div class="col-sm-12 select-table table-striped"> |
| | | <table id="bootstrap-table"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <th:block th:include="include :: footer"/> |
| | | <th:block th:include="include :: bootstrap-select-js"/> |
| | | <script th:inline="javascript"> |
| | | var detailFlag = [[${@permission.hasPermi('monitor:operlog:detail')}]]; |
| | | var datas = [[${@dict.getType('sys_oper_type')}]]; |
| | | var bizTypeDatas = [[${bizTypeDatas}]]; |
| | | |
| | | var prefix = ctx + "monitor/operlog"; |
| | | |
| | | $(function () { |
| | | var options = { |
| | | url: prefix + "/list", |
| | | cleanUrl: prefix + "/clean", |
| | | detailUrl: prefix + "/detail/{id}", |
| | | removeUrl: prefix + "/remove", |
| | | exportUrl: prefix + "/export", |
| | | queryParams: queryParams, |
| | | sortName: "operTime", |
| | | sortOrder: "desc", |
| | | modalName: "æä½æ¥å¿", |
| | | escape: true, |
| | | showPageGo: true, |
| | | rememberSelected: true, |
| | | columns: [{ |
| | | field: 'state', |
| | | checkbox: true |
| | | }, |
| | | { |
| | | field: 'operId', |
| | | title: 'æ¥å¿ç¼å·' |
| | | }, |
| | | { |
| | | field: 'title', |
| | | title: 'ç³»ç»æ¨¡å', |
| | | formatter: function (value, row, index) { |
| | | return $.table.tooltip(value); |
| | | } |
| | | }, |
| | | { |
| | | field: 'businessType', |
| | | title: 'æä½ç±»å', |
| | | align: 'center', |
| | | formatter: function(value, row, index) { |
| | | return $.table.selectDictLabel(datas, value); |
| | | } |
| | | }, |
| | | { |
| | | field: 'operName', |
| | | title: 'æä½äººå', |
| | | sortable: true |
| | | }, |
| | | { |
| | | field: 'deptName', |
| | | title: 'é¨é¨åç§°' |
| | | }, |
| | | { |
| | | field: 'operIp', |
| | | title: 'æä½å°å' |
| | | }, |
| | | { |
| | | field: 'operLocation', |
| | | title: 'æä½å°ç¹' |
| | | }, |
| | | { |
| | | field: 'status', |
| | | title: 'æä½ç¶æ', |
| | | align: 'center', |
| | | formatter: function(value, row, index) { |
| | | if (value == 0) { |
| | | return '<span class="badge badge-primary">æå</span>'; |
| | | } else if (value == 1) { |
| | | return '<span class="badge badge-danger">失败</span>'; |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | field: 'operTime', |
| | | title: 'æä½æ¶é´', |
| | | sortable: true |
| | | }, |
| | | { |
| | | field: 'costTime', |
| | | title: 'æ¶èæ¶é´', |
| | | sortable: true, |
| | | formatter: function(value, row, index) { |
| | | return $.common.sprintf("%s毫ç§", value); |
| | | } |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | align: 'center', |
| | | formatter: function(value, row, index) { |
| | | var actions = []; |
| | | actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.operId + '\')"><i class="fa fa-search"></i>详ç»</a>'); |
| | | return actions.join(''); |
| | | } |
| | | }] |
| | | }; |
| | | $.table.init(options); |
| | | }); |
| | | |
| | | function queryParams(params) { |
| | | var search = $.table.queryParams(params); |
| | | search.params = { |
| | | beginTime : beginOfTime($("#startTime").val()), |
| | | endTime : endOfTime($("#endTime").val()) |
| | | }; |
| | | search.businessTypes = $.common.join($('#businessTypes').selectpicker('val')); |
| | | return search; |
| | | } |
| | | |
| | | function searchPre() { |
| | | $.table.search('operlog-form', 'bootstrap-table'); |
| | | } |
| | | |
| | | function resetPre() { |
| | | resetDate(); |
| | | $("#operlog-form")[0].reset(); |
| | | $("#businessTypes").selectpicker('refresh'); |
| | | $.table.search('operlog-form', 'bootstrap-table', 1); |
| | | } |
| | | </script> |
| | | { |
| | | field: 'businessType', |
| | | title: 'æä½ç±»å', |
| | | align: 'center', |
| | | formatter: function (value, row, index) { |
| | | return $.table.selectDictLabel(datas, value); |
| | | } |
| | | }, |
| | | { |
| | | field: 'bizType', |
| | | title: 'ä¸å¡ç±»å', |
| | | align: 'center', |
| | | formatter: function (value, row, index) { |
| | | return $.table.selectDictLabel(bizTypeDatas, value); |
| | | } |
| | | }, |
| | | { |
| | | field: 'operName', |
| | | title: 'æä½äººå', |
| | | sortable: true |
| | | }, |
| | | { |
| | | field: 'deptName', |
| | | title: 'é¨é¨åç§°' |
| | | }, |
| | | { |
| | | field: 'operIp', |
| | | title: 'æä½å°å' |
| | | }, |
| | | { |
| | | field: 'operLocation', |
| | | title: 'æä½å°ç¹' |
| | | }, |
| | | { |
| | | field: 'status', |
| | | title: 'æä½ç¶æ', |
| | | align: 'center', |
| | | formatter: function (value, row, index) { |
| | | if (value == 0) { |
| | | return '<span class="badge badge-primary">æå</span>'; |
| | | } else if (value == 1) { |
| | | return '<span class="badge badge-danger">失败</span>'; |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | field: 'operTime', |
| | | title: 'æä½æ¶é´', |
| | | sortable: true |
| | | }, |
| | | { |
| | | field: 'costTime', |
| | | title: 'æ¶èæ¶é´', |
| | | sortable: true, |
| | | formatter: function (value, row, index) { |
| | | return $.common.sprintf("%s毫ç§", value); |
| | | } |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | align: 'center', |
| | | formatter: function (value, row, index) { |
| | | var actions = []; |
| | | actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.operId + '\')"><i class="fa fa-search"></i>详ç»</a>'); |
| | | return actions.join(''); |
| | | } |
| | | }] |
| | | }; |
| | | $.table.init(options); |
| | | }); |
| | | |
| | | function queryParams(params) { |
| | | var search = $.table.queryParams(params); |
| | | search.params = { |
| | | beginTime: beginOfTime($("#startTime").val()), |
| | | endTime: endOfTime($("#endTime").val()) |
| | | }; |
| | | search.businessTypes = $.common.join($('#businessTypes').selectpicker('val')); |
| | | return search; |
| | | } |
| | | |
| | | function searchPre() { |
| | | $.table.search('operlog-form', 'bootstrap-table'); |
| | | } |
| | | |
| | | function resetPre() { |
| | | resetDate(); |
| | | $("#operlog-form")[0].reset(); |
| | | $("#businessTypes").selectpicker('refresh'); |
| | | $.table.search('operlog-form', 'bootstrap-table', 1); |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |