| | |
| | | "avatar": "", |
| | | "version": "4.9.2", |
| | | "createdTime": "2025-3-10 16:38:19", |
| | | "updatedTime": "2025-9-4 17:54:21", |
| | | "updatedTime": "2025-9-4 21:44:43", |
| | | "dbConns": [], |
| | | "profile": { |
| | | "default": { |
| | |
| | | "extProps": {}, |
| | | "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
| | | "id": "2543E9E7-C40B-496B-AF48-D57B01A2B230" |
| | | }, |
| | | { |
| | | "defKey": "heat_treatment_flag", |
| | | "defName": "çå¤çæ è¯", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | | "primaryKey": false, |
| | | "notNull": false, |
| | | "autoIncrement": false, |
| | | "defaultValue": "", |
| | | "hideInGraph": false, |
| | | "refDict": "", |
| | | "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
| | | "extProps": {}, |
| | | "domain": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF", |
| | | "id": "7CA68F5B-F30F-4F91-9BBF-1B9A741F44AF" |
| | | } |
| | | ], |
| | | "correlations": [], |
| | |
| | | { |
| | | "defKey": "quantity", |
| | | "defName": "å
¥åºæ°é", |
| | | "comment": "ç©ææå¨ãç产ä¸çº¿ãçå¤çãå°å
åãè°æ¨", |
| | | "comment": "", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | |
| | | { |
| | | "defKey": "inbound_category", |
| | | "defName": "å
¥åºç±»å", |
| | | "comment": "", |
| | | "comment": "ç©ææå¨ãç产ä¸çº¿ãçå¤çãå°å
åãè°æ¨", |
| | | "type": "", |
| | | "len": "", |
| | | "scale": "", |
| | |
| | | package org.jeecg.modules.base.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | |
| | | } |
| | | |
| | | |
| | | //@AutoLog(value = "线边ä»åºä¿¡æ¯-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="线边ä»åºä¿¡æ¯-éè¿idæ¥è¯¢", notes="线边ä»åºä¿¡æ¯-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value = "线边ä»åºä¿¡æ¯-éè¿äº§çº¿IDæ¥è¯¢", notes = "线边ä»åºä¿¡æ¯-éè¿äº§çº¿IDæ¥è¯¢") |
| | | @GetMapping(value = "/queryByFactoryId") |
| | | public Result<LineSideWarehouse> queryByFactoryId(@RequestParam(name="factoryId") String factoryId) { |
| | | LineSideWarehouse lineSideWarehouse = lineSideWarehouseService.queryByFactoryId(factoryId); |
| | |
| | | return Result.OK(lineSideWarehouse); |
| | | } |
| | | |
| | | @ApiOperation(value = "线边ä»åºä¿¡æ¯-éè¿äº§çº¿åç±»æ¥è¯¢", notes = "线边ä»åºä¿¡æ¯-éè¿äº§çº¿åç±»æ¥è¯¢") |
| | | @GetMapping(value = "/queryByProductionType") |
| | | public Result<List<LineSideWarehouse>> queryByProductionType(@RequestParam(name = "productionType") String productionType) { |
| | | List<LineSideWarehouse> list = lineSideWarehouseService.queryByProductionType(productionType); |
| | | if (list == null) { |
| | | return Result.OK(Collections.emptyList()); |
| | | } |
| | | return Result.OK(list); |
| | | } |
| | | |
| | | } |
| | |
| | | package org.jeecg.modules.base.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: 线边ä»åºä¿¡æ¯ |
| | |
| | | */ |
| | | public interface LineSideWarehouseMapper extends BaseMapper<LineSideWarehouse> { |
| | | |
| | | /** |
| | | * éè¿äº§çº¿ç±»åæ¥è¯¢çº¿è¾¹åº |
| | | * @param types |
| | | * @return |
| | | */ |
| | | List<LineSideWarehouse> queryByProductionType(@Param("types") String[] types); |
| | | } |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.base.mapper.LineSideWarehouseMapper"> |
| | | |
| | | <select id="queryByProductionType" resultType="org.jeecg.modules.base.entity.LineSideWarehouse"> |
| | | select t1.* from base_line_side_warehouse t1 |
| | | left join base_factory t2 on t1.factory_id = t2.id |
| | | where t1.del_flag='0' and t1.warehouse_status='1' and |
| | | <foreach collection="types" item="item" open=" t2.production_type IN (" close=")" separator=",">#{item}</foreach> |
| | | order by t1.warehouse_code |
| | | </select> |
| | | </mapper> |
| | |
| | | import org.jeecg.modules.base.entity.LineSideWarehouse; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: 线边ä»åºä¿¡æ¯ |
| | | * @Author: jeecg-boot |
| | |
| | | * @return |
| | | */ |
| | | LineSideWarehouse queryByFactoryId(String factoryId); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿ç±»åæ¥è¯¢çº¿è¾¹åº |
| | | * @param productionType |
| | | * @return |
| | | */ |
| | | List<LineSideWarehouse> queryByProductionType(String productionType); |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.jeecg.modules.base.entity.LineSideWarehouse; |
| | | import org.jeecg.modules.base.mapper.LineSideWarehouseMapper; |
| | | import org.jeecg.modules.base.service.ILineSideWarehouseService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: 线边ä»åºä¿¡æ¯ |
| | |
| | | } |
| | | return entity; |
| | | } |
| | | |
| | | @Override |
| | | public List<LineSideWarehouse> queryByProductionType(String productionType) { |
| | | if(StringUtils.isBlank(productionType)) { |
| | | return Collections.emptyList(); |
| | | } |
| | | String[] types = productionType.split(","); |
| | | return this.getBaseMapper().queryByProductionType(types); |
| | | } |
| | | } |
| | |
| | | |
| | | } |
| | | |
| | | @AutoLog(value = "线边åºç©æä¿¡æ¯-éè¿äº§çº¿ç±»åæ¥è¯¢çº¿è¾¹åºç©æ") |
| | | @ApiOperation(value = "线边åºç©æä¿¡æ¯-éè¿äº§çº¿ç±»åæ¥è¯¢çº¿è¾¹åºç©æ", notes = "线边åºç©æä¿¡æ¯-éè¿äº§çº¿ç±»åæ¥è¯¢çº¿è¾¹åºç©æ") |
| | | @GetMapping(value = "/queryLswMaterialByProductionType") |
| | | public Result<List<LswMaterial>> queryLswMaterialByProductionType(@RequestParam("factoryId") String factoryId) { |
| | |
| | | } |
| | | return Result.OK(lswMaterialList); |
| | | } |
| | | |
| | | @ApiOperation(value = "线边åºç©æä¿¡æ¯-æ ¹æ®ç©æç±»åæ¥è¯¢", notes = "线边åºç©æä¿¡æ¯-æ ¹æ®ç©æç±»åæ¥è¯¢") |
| | | @GetMapping(value = "/queryByMaterialCategory") |
| | | public Result<List<LswMaterial>> queryByMaterialCategory(@RequestParam("materialCategory") String materialCategory) { |
| | | LambdaQueryWrapper<LswMaterial> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(LswMaterial::getMaterialCategory, materialCategory); |
| | | queryWrapper.eq(LswMaterial::getDelFlag, CommonConstant.DEL_FLAG_0); |
| | | queryWrapper.eq(LswMaterial::getMaterialStatus, CommonConstant.STATUS_1); |
| | | queryWrapper.orderByAsc(LswMaterial::getMaterialNumber); |
| | | List<LswMaterial> lswMaterialList = lswMaterialService.list(queryWrapper); |
| | | return Result.ok(lswMaterialList); |
| | | } |
| | | } |
| | |
| | | */ |
| | | @Api(tags="ç©æå
¥åºå") |
| | | @RestController |
| | | @RequestMapping("/lswmaterialinbound/lswMaterialInbound") |
| | | @RequestMapping("/lsw/materialInbound") |
| | | @Slf4j |
| | | public class LswMaterialInboundController extends JeecgController<LswMaterialInbound, ILswMaterialInboundService> { |
| | | @Autowired |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag; |
| | | @Excel(name = "æ¥æºç¼ç ", width = 15) |
| | | @ApiModelProperty(value = "æ¥æºç¼ç ") |
| | | private String originalCode; |
| | | @Excel(name = "æ¥æºåç§°", width = 15) |
| | | @ApiModelProperty(value = "æ¥æºåç§°") |
| | | private String originalName; |
| | | /**产线ID*/ |
| | | @Excel(name = "产线ID", width = 15) |
| | | @ApiModelProperty(value = "产线ID") |
| | |
| | | @Excel(name = "å
¥åºæ°é", width = 15) |
| | | @ApiModelProperty(value = "å
¥åºæ°é") |
| | | private BigDecimal quantity; |
| | | /**å
¥åºç±»å*/ |
| | | @Excel(name = "å
¥åºç±»å", width = 15) |
| | | @ApiModelProperty(value = "å
¥åºç±»å") |
| | | @Dict(dicCode = "material_inbound_category") |
| | | private String inboundCategory; |
| | | /**æ¥æ¶äºº*/ |
| | | @Excel(name = "æ¥æ¶äºº", width = 15) |
| | | @ApiModelProperty(value = "æ¥æ¶äºº") |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.modules.lsw.enums.MaterialInventoryStatusEnum; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | |
| | | @ApiModelProperty(value = "åºåç¶æ") |
| | | @Dict(dicCode = "material_inventory_status") |
| | | private String inventoryStatus; |
| | | /**çå¤çæ è¯*/ |
| | | @Excel(name = "çå¤çæ è¯", width = 15) |
| | | @ApiModelProperty(value = "çå¤çæ è¯") |
| | | private String heatTreatmentFlag = CommonConstant.STATUS_0; |
| | | |
| | | public LswMaterialInventory(){} |
| | | |
| | |
| | | FINISHED_PRODUCT, //æå |
| | | OUTER_FLANGE, //夿³å
° |
| | | INNER_FLANGE, //å
æ³å
° |
| | | SMALL_INNER_RING, //å°å
å |
| | | STEEL_BALL, //é¢ç |
| | | COMPONENTS, //é
ä»¶ |
| | | BLANK; //æ¯å¯ |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.lsw.enums; |
| | | |
| | | public enum MaterialInboundCategory { |
| | | MATERIAL_TRANSFER_REQUEST, //ç©ææå¨ |
| | | PRODUCTION_INBOUND,//ç产ä¸çº¿ |
| | | HEAT_TREATMENT_INBOUND,//çå¤ç |
| | | SMALL_INNER_RING,//å°å
å |
| | | MATERIAL_INNER_TRANSFER //å
é¨è°æ¨ |
| | | ; |
| | | } |