| | |
| | | return materialReleaseService.mixingList(values); |
| | | } |
| | | |
| | | //搅拌站 (2023-11-14) 添加原料 入站 列表 /罐子 类型表 |
| | | @GetMapping("/siloList") |
| | | public BasicResult siloList(@RequestParam Integer types) { |
| | | return materialReleaseService.siloList(types); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | private String reportNumber; |
| | | |
| | | /** |
| | | * 报告编号 |
| | | */ |
| | | private Integer stata; |
| | | |
| | | /** |
| | | * 报告编号 |
| | | */ |
| | | private String siloId; |
| | | /** |
| | | * 报告编号 |
| | | */ |
| | | private String percentage; |
| | | |
| | | /** |
| | | * This field was generated by MyBatis Generator. |
| | | * This field corresponds to the database table t_mixing |
| | | * |
对比新文件 |
| | |
| | | package com.thhy.materials.modules.biz.concret.entity; |
| | | |
| | | import lombok.Data; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import lombok.ToString; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @Getter |
| | | @Setter |
| | | @ToString |
| | | public class TSilo implements Serializable { |
| | | /** |
| | | * 料仓id |
| | | */ |
| | | private String siloId; |
| | | |
| | | /** |
| | | * 料仓管名称 |
| | | */ |
| | | private String siloName; |
| | | |
| | | /** |
| | | * 几号仓1-6 |
| | | */ |
| | | private Integer types; |
| | | |
| | | private TMixing mixing; |
| | | |
| | | /** |
| | | * This field was generated by MyBatis Generator. |
| | | * This field corresponds to the database table t_silo |
| | | * |
| | | * @mbg.generated Wed Nov 15 13:08:15 CST 2023 |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | } |
| | |
| | | package com.thhy.materials.modules.biz.concret.mapper; |
| | | |
| | | import com.thhy.general.annotations.Idkey; |
| | | import com.thhy.materials.modules.biz.concret.entity.TMaterialRelease; |
| | | import com.thhy.materials.modules.biz.concret.entity.TMixing; |
| | | import com.thhy.materials.modules.biz.concret.entity.TRawMaterial; |
| | | import com.thhy.materials.modules.biz.concret.entity.TReleaseData; |
| | | import com.thhy.materials.modules.biz.concret.entity.*; |
| | | import com.thhy.materials.modules.biz.concret.entity.dto.PieceDto; |
| | | |
| | | import java.util.HashMap; |
| | |
| | | void mixingInsert(@Idkey("mixingId") HashMap<String, Object> values); |
| | | |
| | | List<TMixing> mixingList(HashMap<String, Object> values); |
| | | |
| | | List<TSilo> siloList(Integer types); |
| | | |
| | | TMixing mixingLists(String siloId); |
| | | } |
| | |
| | | BasicResult mixingInsert(HashMap<String, Object> values); |
| | | |
| | | BasicResult mixingList(HashMap<String, Object> values); |
| | | |
| | | BasicResult siloList(Integer types); |
| | | } |
| | |
| | | import com.thhy.general.common.BasicResult; |
| | | import com.thhy.general.config.SysUserInfo; |
| | | import com.thhy.general.utils.UserInfoUtils; |
| | | import com.thhy.materials.modules.biz.concret.entity.TMaterialRelease; |
| | | import com.thhy.materials.modules.biz.concret.entity.TMixing; |
| | | import com.thhy.materials.modules.biz.concret.entity.TRawMaterial; |
| | | import com.thhy.materials.modules.biz.concret.entity.TReleaseData; |
| | | import com.thhy.materials.modules.biz.concret.entity.*; |
| | | import com.thhy.materials.modules.biz.concret.entity.dto.DicetName; |
| | | import com.thhy.materials.modules.biz.concret.entity.dto.PieceDto; |
| | | import com.thhy.materials.modules.biz.concret.mapper.TMaterialReleaseMappper; |
| | |
| | | |
| | | @Override |
| | | public BasicResult mixingList(HashMap<String, Object> values) { |
| | | Integer pageSize = Integer.valueOf(values.get("pageSize").toString()); |
| | | Integer pageNum = Integer.valueOf(values.get("pageNum").toString()); |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | // Integer pageSize = Integer.valueOf(values.get("pageSize").toString()); |
| | | // Integer pageNum = Integer.valueOf(values.get("pageNum").toString()); |
| | | // PageHelper.startPage(pageNum,pageSize); |
| | | List<TMixing> mixings = materialReleaseMappper.mixingList(values); |
| | | PageInfo<TMixing> tMixingPageInfo = new PageInfo<>(mixings); |
| | | return BasicResult.success(tMixingPageInfo); |
| | | //PageInfo<TMixing> tMixingPageInfo = new PageInfo<>(mixings); |
| | | return BasicResult.success(mixings); |
| | | } |
| | | |
| | | @Override |
| | | public BasicResult siloList(Integer types) { |
| | | List<TSilo> tSilos = materialReleaseMappper.siloList(types); |
| | | for (TSilo silo :tSilos){ |
| | | TMixing mixings = materialReleaseMappper.mixingLists(silo.getSiloId()); |
| | | silo.setMixing(mixings); |
| | | } |
| | | return BasicResult.success(tSilos); |
| | | } |
| | | } |
| | |
| | | <if test="reportNumber != null"> |
| | | report_number, |
| | | </if> |
| | | <if test="stata != null"> |
| | | stata, |
| | | </if> |
| | | <if test="siloId != null"> |
| | | silo_id, |
| | | </if> |
| | | <if test="percentage != null"> |
| | | percentage, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="mixingId != null"> |
| | |
| | | <if test="reportNumber != null"> |
| | | #{reportNumber,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="stata != null"> |
| | | #{stata}, |
| | | </if> |
| | | <if test="siloId != null"> |
| | | #{siloId,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="percentage != null"> |
| | | #{percentage,jdbcType=VARCHAR}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <select id="mixingList" resultType="com.thhy.materials.modules.biz.concret.entity.TMixing"> |
| | |
| | | in_num as inNum, |
| | | in_date as inDate, |
| | | inspect_state as inspectState, |
| | | report_number as reportNumber |
| | | from t_mixing |
| | | order by in_date desc |
| | | report_number as reportNumber, |
| | | stata as stata, |
| | | silo_id as siloId, |
| | | percentage as percentage |
| | | from t_mixing where silo_id=#{siloId} |
| | | order by in_date desc limit 0,1 |
| | | </select> |
| | | <select id="mixingLists" resultType="com.thhy.materials.modules.biz.concret.entity.TMixing"> |
| | | select |
| | | mixing_id as mixingId, |
| | | material as material, |
| | | spec as spec, |
| | | producer as producer, |
| | | stove as stove, |
| | | in_num as inNum, |
| | | in_date as inDate, |
| | | inspect_state as inspectState, |
| | | report_number as reportNumber, |
| | | stata as stata, |
| | | silo_id as siloId, |
| | | percentage as percentage |
| | | from t_mixing where silo_id=#{siloId} |
| | | order by in_date desc limit 0,1 |
| | | </select> |
| | | <select id="siloList" resultType="com.thhy.materials.modules.biz.concret.entity.TSilo"> |
| | | select |
| | | silo_id as siloId, |
| | | silo_name as siloName, |
| | | types as types |
| | | from t_silo where types=#{types} |
| | | </select> |
| | | </mapper> |