| | |
| | | import com.ruoyi.inspect.service.InsOrderPlanService; |
| | | import com.ruoyi.inspect.service.InsOrderRatesService; |
| | | import com.ruoyi.inspect.service.InsProductService; |
| | | import com.ruoyi.performance.dto.AuxiliaryOutputWorkingHoursTemporaryDto; |
| | | import com.ruoyi.performance.pojo.AuxiliaryOutputWorkingHoursTemporary; |
| | | import com.ruoyi.performance.service.AuxiliaryOutputWorkingHoursTemporaryService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @ApiOperation(value = "æ ¹æ®è®¢åæ¥è¯¢å·¥æ¶è¯¦æ
") |
| | | @PreAuthorize("@ss.hasPermi('get:working:hours:byOrder')") |
| | | @GetMapping("/getWorkingHoursByOrderId") |
| | | public Result<IPage<AuxiliaryOutputWorkingHoursTemporary>> getWorkingHoursByOrderId(Page page, AuxiliaryOutputWorkingHoursTemporary workingHoursTemporary) { |
| | | public Result<IPage<AuxiliaryOutputWorkingHoursTemporaryDto>> getWorkingHoursByOrderId(Page page, AuxiliaryOutputWorkingHoursTemporaryDto workingHoursTemporary) { |
| | | return Result.success(auxiliaryOutputWorkingHoursTemporaryService.getWorkingHoursByOrderId(page, workingHoursTemporary)); |
| | | } |
| | | |
| | |
| | | import cn.hutool.http.HttpUtil; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.basic.dto.IfsInventoryQuantitySupplierDto; |
| | | import com.ruoyi.common.annotation.Anonymous; |
| | | import com.ruoyi.common.annotation.PersonalScope; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.dto.ReportPageDto; |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢æ£éªæ¥åæ°æ®") |
| | | @GetMapping("/pageInsReport") |
| | | @PreAuthorize("@ss.hasPermi('business:reportPreparation')") |
| | | @PersonalScope(permsName = "business:reportPreparation", objectName = ReportPageDto.class, paramName = "createOrderUser") |
| | | public Result pageInsReport(Page page, ReportPageDto reportPageDto){ |
| | | return Result.success(insReportService.pageInsReport(page, reportPageDto)); |
| | | } |
| | |
| | | |
| | | @ApiOperation(value = "åæææ£éªæ¥è¯¢æ£éªä¸") |
| | | @GetMapping("/getIfsByStateOne") |
| | | // @PreAuthorize("@ss.hasPermi('business:order')") |
| | | // @PersonalScope(permsName = "business:order", objectName = IfsInventoryQuantityDto.class, paramName = "createUser") |
| | | @PreAuthorize("@ss.hasPermi('business:order')") |
| | | @PersonalScope(permsName = "business:order", objectName = IfsInventoryQuantityDto.class, paramName = "createUser") |
| | | public Result getIfsByStateOne(Page page, IfsInventoryQuantityDto ifsInventoryQuantityDto){ |
| | | return Result.success(rawMaterialOrderService.getIfsByStateOne(page, ifsInventoryQuantityDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "åæææ£éªæ¥è¯¢å·²æ£éª") |
| | | @GetMapping("/getIfsByOver") |
| | | @PreAuthorize("@ss.hasPermi('business:order')") |
| | | @PersonalScope(permsName = "business:order", objectName = IfsInventoryQuantitySupplierDto.class, paramName = "createUser") |
| | | public Result getIfsByOver(Page page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto){ |
| | | return Result.success(rawMaterialOrderService.getIfsByOver(page, ifsInventoryQuantityDto)); |
| | | } |
| | |
| | | |
| | | @ApiOperation(value = "åæææ£éªæ¥è¯¢å£åº¦æ£éª") |
| | | @GetMapping("/getIfsByQuarter") |
| | | @PreAuthorize("@ss.hasPermi('business:order')") |
| | | @PersonalScope(permsName = "business:order", objectName = IfsInventoryQuantitySupplierDto.class, paramName = "createUser") |
| | | public Result getIfsByQuarter(Page page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto){ |
| | | return Result.success(rawMaterialOrderService.getIfsByQuarter(page, ifsInventoryQuantityDto)); |
| | | } |
| | |
| | | @ApiModelProperty(value = "å®éªå®¤") |
| | | private String sonLaboratory; |
| | | |
| | | @ApiModelProperty(value = "åªçèªå·±æ è¯") |
| | | private Integer createOrderUser; |
| | | |
| | | } |
| | |
| | | // todo: ä»
çèªå·± |
| | | //è·åå½å人æå±å®éªå®¤id |
| | | String laboratory = null; |
| | | Integer createOrderUser = null; |
| | | |
| | | Integer createOrderUser = reportPageDto.getCreateOrderUser(); |
| | | String queryStatus = reportPageDto.getQueryStatus(); |
| | | reportPageDto.setQueryStatus(null); |
| | | reportPageDto.setCreateOrderUser(null); |
| | | |
| | | map.put("body", insReportMapper.pageInsReport(page, |
| | | QueryWrappers.queryWrappers(reportPageDto), |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.performance.dto; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.ruoyi.performance.pojo.AuxiliaryOutputWorkingHoursTemporary; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2025/3/16 |
| | | */ |
| | | @Data |
| | | public class AuxiliaryOutputWorkingHoursTemporaryDto extends AuxiliaryOutputWorkingHoursTemporary { |
| | | |
| | | @ApiModelProperty("æ£æµäºº") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("çµç¼æ è¯") |
| | | private String cableTag; |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.performance.dto.AuxiliaryOutputWorkingHoursTemporaryDto; |
| | | import com.ruoyi.performance.pojo.AuxiliaryOutputWorkingHoursTemporary; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | |
| | | * @param page |
| | | * @return |
| | | */ |
| | | IPage<AuxiliaryOutputWorkingHoursTemporary> getWorkingHoursByOrderId(Page page, @Param("ew") QueryWrapper<AuxiliaryOutputWorkingHoursTemporary> ew); |
| | | IPage<AuxiliaryOutputWorkingHoursTemporaryDto> getWorkingHoursByOrderId(Page page, @Param("ew") QueryWrapper<AuxiliaryOutputWorkingHoursTemporary> ew); |
| | | } |
| | | |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.performance.dto.AuxiliaryOutputWorkingHoursTemporaryDto; |
| | | import com.ruoyi.performance.pojo.AuxiliaryOutputWorkingHoursTemporary; |
| | | |
| | | /** |
| | |
| | | * @param workingHoursTemporary |
| | | * @return |
| | | */ |
| | | IPage<AuxiliaryOutputWorkingHoursTemporary> getWorkingHoursByOrderId(Page page, AuxiliaryOutputWorkingHoursTemporary workingHoursTemporary); |
| | | IPage<AuxiliaryOutputWorkingHoursTemporaryDto> getWorkingHoursByOrderId(Page page, AuxiliaryOutputWorkingHoursTemporaryDto workingHoursTemporary); |
| | | } |
| | | |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.performance.dto.AuxiliaryOutputWorkingHoursTemporaryDto; |
| | | import com.ruoyi.performance.mapper.AuxiliaryOutputWorkingHoursTemporaryMapper; |
| | | import com.ruoyi.performance.pojo.AuxiliaryOutputWorkingHoursTemporary; |
| | | import com.ruoyi.performance.service.AuxiliaryOutputWorkingHoursTemporaryService; |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<AuxiliaryOutputWorkingHoursTemporary> getWorkingHoursByOrderId(Page page, AuxiliaryOutputWorkingHoursTemporary workingHoursTemporary) { |
| | | public IPage<AuxiliaryOutputWorkingHoursTemporaryDto> getWorkingHoursByOrderId(Page page, AuxiliaryOutputWorkingHoursTemporaryDto workingHoursTemporary) { |
| | | return baseMapper.getWorkingHoursByOrderId(page, QueryWrappers.queryWrappers(workingHoursTemporary)); |
| | | } |
| | | } |
| | |
| | | <mapper namespace="com.ruoyi.performance.mapper.AuxiliaryOutputWorkingHoursTemporaryMapper"> |
| | | |
| | | <!-- æ ¹æ®è®¢åæ¥è¯¢å·¥æ¶è¯¦æ
--> |
| | | |
| | | <select id="getWorkingHoursByOrderId" |
| | | resultType="com.ruoyi.performance.pojo.AuxiliaryOutputWorkingHoursTemporary"> |
| | | resultType="com.ruoyi.performance.dto.AuxiliaryOutputWorkingHoursTemporaryDto"> |
| | | select * |
| | | from auxiliary_output_working_hours_temporary |
| | | from (select aowh.*, |
| | | user.name, |
| | | ip.cable_tag |
| | | FROM auxiliary_output_working_hours_temporary aowh |
| | | left join ins_product ip on ip.id = aowh.ins_product_id |
| | | left join user on user.id=aowh.`check`) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | |
| | | try { |
| | | jsonNode = objectMapper.readTree(response.body()); |
| | | String accessToken = jsonNode.get("access_token").asText(); |
| | | Log.get().info("è·å人äºç³»ç»tokenï¼" + accessToken); |
| | | redisTemplate.opsForValue().set("personnelAccessToken:idToken:", accessToken, jsonNode.get("expires_in").asInt() - 60, TimeUnit.SECONDS); |
| | | return accessToken; |
| | | } catch (Exception e) { |
| | |
| | | /** å 餿 å¿ï¼0代表åå¨ 2代表å é¤ï¼ */ |
| | | private String delFlag; |
| | | |
| | | /** è§è²åç§° */ |
| | | private String roleName; |
| | | |
| | | /** æåç»å½IP */ |
| | | @Excel(name = "æåç»å½IP", type = Type.EXPORT) |
| | | private String loginIp; |
| | |
| | | this.postIds = postIds; |
| | | } |
| | | |
| | | public String getRoleName() |
| | | { |
| | | return roleName; |
| | | } |
| | | |
| | | public void setRoleName(String roleName) |
| | | { |
| | | this.roleName = roleName; |
| | | } |
| | | public Long getRoleId() |
| | | { |
| | | return roleId; |
| | |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .append("dept", getDept()) |
| | | .append("roleName", getRoleName()) |
| | | .toString(); |
| | | } |
| | | } |
| | |
| | | <result property="signatureUrl" column="signature_url" /> |
| | | <result property="pictureUrl" column="picture_url" /> |
| | | <result property="company" column="company" /> |
| | | <result property="roleName" column="role_name" /> |
| | | <association property="dept" javaType="SysDept" resultMap="deptResult" /> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult" /> |
| | | </resultMap> |
| | |
| | | </sql> |
| | | |
| | | <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult"> |
| | | select u.id, u.dept_id, u.name, u.account, u.email, u.picture_url, u.phone, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from user u |
| | | select u.id, |
| | | u.dept_id, |
| | | u.name, |
| | | u.account, |
| | | u.email, |
| | | u.picture_url, |
| | | u.phone, |
| | | u.sex, |
| | | u.status, |
| | | u.del_flag, |
| | | u.login_ip, |
| | | u.login_date, |
| | | u.create_by, |
| | | u.create_time, |
| | | u.remark, |
| | | d.dept_name, |
| | | d.leader, |
| | | GROUP_CONCAT(DISTINCT sr.role_name SEPARATOR ',') AS role_name |
| | | from user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role sur on sur.user_id = u.id |
| | | left join sys_role sr on sr.role_id = sur.role_id |
| | | where u.del_flag = '0' |
| | | <if test="userId != null and userId != 0"> |
| | | AND u.id = #{userId} |
| | |
| | | <if test="deptId != null and deptId != 0"> |
| | | AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) )) |
| | | </if> |
| | | group by u.id |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |