已重命名1个文件
已修改5个文件
已删除18个文件
| | |
| | | "avatar": "", |
| | | "version": "4.9.2", |
| | | "createdTime": "2025-3-10 16:38:19", |
| | | "updatedTime": "2025-6-25 17:44:46", |
| | | "updatedTime": "2025-6-27 17:40:32", |
| | | "dbConns": [], |
| | | "profile": { |
| | | "default": { |
| | |
| | | "id": "1E6C9DB4-C399-4E62-83B3-2A92E1B3DD7D" |
| | | }, |
| | | { |
| | | "defKey": "warehouse_id", |
| | | "defName": "åºåå°ID", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "59203E43-D518-4709-9315-BB3A8578FECE" |
| | | }, |
| | | { |
| | | "defKey": "inventory_status", |
| | | "defName": "åºåç¶æ", |
| | | "comment": "æ£å¸¸ãå·²åºåº", |
| | |
| | | "extProps": {}, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "id": "33F2BEB0-416D-4A2F-8098-32E3F179755C" |
| | | }, |
| | | { |
| | | "defKey": "warehouse_id", |
| | | "defName": "åºåå°ID", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
| | | "refDict": "", |
| | | "extProps": {}, |
| | | "notes": {}, |
| | | "attr1": "", |
| | | "attr2": "", |
| | | "attr3": "", |
| | | "attr4": "", |
| | | "attr5": "", |
| | | "attr6": "", |
| | | "attr7": "", |
| | | "attr8": "", |
| | | "attr9": "", |
| | | "id": "5F007840-3FAA-4E5B-85FE-79A2DA8E8948", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64" |
| | | }, |
| | | { |
| | | "defKey": "material_number", |
| | |
| | | }, |
| | | { |
| | | "defKey": "factory_id", |
| | | "defName": "å·¥å/产线ID", |
| | | "defName": "产线ID", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
ÎļþÃû´Ó src/main/java/org/jeecg/modules/dncFlow/FlowThirdServiceImpl.java ÐÞ¸Ä |
| | |
| | | package org.jeecg.modules.dncFlow; |
| | | package org.jeecg.modules.flowable.service.impl; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | package org.jeecg.modules.system.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | |
| | | /** |
| | |
| | | package org.jeecg.modules.system.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | |
| | | /** |
| | |
| | | private SysDepartRoleUserMapper departRoleUserMapper; |
| | | @Autowired |
| | | private SysUserMapper sysUserMapper; |
| | | @Resource |
| | | private MdcEquipmentDepartMapper mdcEquipmentDepartMapper; |
| | | |
| | | @Override |
| | | public List<SysDepartTreeModel> queryMyDeptTreeList(String departIds) { |
| | |
| | | //æ ¹æ®é¨é¨idå é¤ç¨æ·ä¸é¨é¨å
³ç³» |
| | | userDepartMapper.delete(new LambdaQueryWrapper<SysUserDepart>().in(SysUserDepart::getDepId,idList)); |
| | | //æ ¹æ®é¨é¨idå é¤è®¾å¤ä¸é¨é¨å
³ç³» |
| | | mdcEquipmentDepartMapper.delete(new LambdaQueryWrapper<MdcEquipmentDepart>().in(MdcEquipmentDepart::getDepId, idList)); |
| | | // mdcEquipmentDepartMapper.delete(new LambdaQueryWrapper<MdcEquipmentDepart>().in(MdcEquipmentDepart::getDepId, idList)); |
| | | //æ ¹æ®é¨é¨idå é¤é¨é¨ææ |
| | | departPermissionMapper.delete(new LambdaQueryWrapper<SysDepartPermission>().in(SysDepartPermission::getDepartId,idList)); |
| | | //æ ¹æ®é¨é¨idå é¤é¨é¨è§è² |
| | |
| | | //æ ¹æ®é¨é¨idå é¤ç¨æ·ä¸é¨é¨å
³ç³» |
| | | userDepartMapper.delete(new LambdaQueryWrapper<SysUserDepart>().in(SysUserDepart::getDepId, idList)); |
| | | //æ ¹æ®é¨é¨idå é¤è®¾å¤ä¸é¨é¨å
³ç³» |
| | | mdcEquipmentDepartMapper.delete(new LambdaQueryWrapper<MdcEquipmentDepart>().in(MdcEquipmentDepart::getDepId, idList)); |
| | | // mdcEquipmentDepartMapper.delete(new LambdaQueryWrapper<MdcEquipmentDepart>().in(MdcEquipmentDepart::getDepId, idList)); |
| | | //æ ¹æ®é¨é¨idå é¤é¨é¨ææ |
| | | departPermissionMapper.delete(new LambdaQueryWrapper<SysDepartPermission>().in(SysDepartPermission::getDepartId, idList)); |
| | | //æ ¹æ®é¨é¨idå é¤é¨é¨è§è² |
| | |
| | | UserFactoryMapper userFactoryMapper; |
| | | @Resource |
| | | private ISysDictService sysDictService; |
| | | @Resource |
| | | private MdcProductionEquipmentMapper mdcProductionEquipmentMapper; |
| | | @Resource |
| | | private DncDevicePermissionMapper dncDevicePermissionMapper; |
| | | |
| | | @Override |
| | | @CacheEvict(value = {CacheConstant.SYS_USERS_CACHE}, allEntries = true) |
| | |
| | | } |
| | | } |
| | | //step.5 ä¿åè®¾å¤æé |
| | | List<String> EquipmentIds= mdcProductionEquipmentMapper.selectList(new QueryWrapper<MdcProductionEquipment>().in("production_id",arr)) |
| | | .stream().map(MdcProductionEquipment::getEquipmentId).collect(Collectors.toList()); |
| | | if (oConvertUtils.isNotEmpty(EquipmentIds)) { |
| | | for (String equipmentId : EquipmentIds) { |
| | | DncDevicePermission dncDevicePermission=new DncDevicePermission(); |
| | | dncDevicePermission.setDeviceId(equipmentId); |
| | | dncDevicePermission.setUserId(user.getId()); |
| | | dncDevicePermissionMapper.insert(dncDevicePermission); |
| | | } |
| | | } |
| | | // List<String> EquipmentIds= mdcProductionEquipmentMapper.selectList(new QueryWrapper<MdcProductionEquipment>().in("production_id",arr)) |
| | | // .stream().map(MdcProductionEquipment::getEquipmentId).collect(Collectors.toList()); |
| | | // if (oConvertUtils.isNotEmpty(EquipmentIds)) { |
| | | // for (String equipmentId : EquipmentIds) { |
| | | // DncDevicePermission dncDevicePermission=new DncDevicePermission(); |
| | | // dncDevicePermission.setDeviceId(equipmentId); |
| | | // dncDevicePermission.setUserId(user.getId()); |
| | | // dncDevicePermissionMapper.insert(dncDevicePermission); |
| | | // } |
| | | // } |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | //step.5 ä¿®æ¹è®¾å¤æé |
| | | //å
å åå |
| | | dncDevicePermissionMapper.delete(new QueryWrapper<DncDevicePermission>().lambda().eq(DncDevicePermission::getUserId, user.getId())); |
| | | List<String> EquipmentIds= mdcProductionEquipmentMapper.selectList(new QueryWrapper<MdcProductionEquipment>().in("production_id",array)) |
| | | .stream().map(MdcProductionEquipment::getEquipmentId).collect(Collectors.toList()); |
| | | if (oConvertUtils.isNotEmpty(EquipmentIds)) { |
| | | for (String equipmentId : EquipmentIds) { |
| | | DncDevicePermission dncDevicePermission=new DncDevicePermission(); |
| | | dncDevicePermission.setDeviceId(equipmentId); |
| | | dncDevicePermission.setUserId(user.getId()); |
| | | dncDevicePermissionMapper.insert(dncDevicePermission); |
| | | } |
| | | } |
| | | // dncDevicePermissionMapper.delete(new QueryWrapper<DncDevicePermission>().lambda().eq(DncDevicePermission::getUserId, user.getId())); |
| | | // List<String> EquipmentIds= mdcProductionEquipmentMapper.selectList(new QueryWrapper<MdcProductionEquipment>().in("production_id",array)) |
| | | // .stream().map(MdcProductionEquipment::getEquipmentId).collect(Collectors.toList()); |
| | | // if (oConvertUtils.isNotEmpty(EquipmentIds)) { |
| | | // for (String equipmentId : EquipmentIds) { |
| | | // DncDevicePermission dncDevicePermission=new DncDevicePermission(); |
| | | // dncDevicePermission.setDeviceId(equipmentId); |
| | | // dncDevicePermission.setUserId(user.getId()); |
| | | // dncDevicePermissionMapper.insert(dncDevicePermission); |
| | | // } |
| | | // } |
| | | //step.6 ä¿®æ¹ææºå·åé®ç®± |
| | | // æ´æ°ææºå·ãé®ç®±ç©ºå符串为 null |
| | | userMapper.updateNullByEmptyString("email"); |