| | |
| | | import com.thhy.materials.modules.biz.weigh.dto.QueryWeighDto; |
| | | import com.thhy.materials.modules.biz.weigh.entity.WeighVo; |
| | | import com.thhy.materials.modules.biz.weigh.service.WeighService; |
| | | import org.omg.CORBA.StringHolder; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Author QiuYuHao |
| | |
| | | PageInfo<WeighVo> weighVoPageInfo = new PageInfo<>(weighService.findAll(queryWeighDto)); |
| | | return BasicResult.success(weighVoPageInfo); |
| | | } |
| | | |
| | | @PostMapping("/weighbridgeList") |
| | | public BasicResult weighbridgeList(@RequestBody Map<String,Object> values){ |
| | | return weighService.weighbridgeList(values); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
对比新文件 |
| | |
| | | package com.thhy.materials.modules.biz.weigh.entity; |
| | | |
| | | import lombok.Data; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import lombok.ToString; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @Getter |
| | | @Setter |
| | | @ToString |
| | | public class TWeighbridge implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | private Integer weighbridgeId; |
| | | |
| | | /** |
| | | * 数据id |
| | | */ |
| | | private String id; |
| | | |
| | | /** |
| | | * 过磅编号 |
| | | */ |
| | | private String code; |
| | | |
| | | /** |
| | | * 业务所属机构 |
| | | */ |
| | | private String orgname; |
| | | |
| | | /** |
| | | * 供应单位名称 |
| | | */ |
| | | private String supplyorgname; |
| | | |
| | | /** |
| | | * 运输车牌号 |
| | | */ |
| | | private String carnumber; |
| | | |
| | | /** |
| | | * 运输司机 |
| | | */ |
| | | private String drivername; |
| | | |
| | | /** |
| | | * 原料名称 |
| | | */ |
| | | private String matname; |
| | | |
| | | /** |
| | | * 原材料型号 |
| | | */ |
| | | private String matmodel; |
| | | |
| | | /** |
| | | * 过毛时间 |
| | | */ |
| | | private String mpoundtime; |
| | | |
| | | /** |
| | | * 过磅毛重 千克 kg |
| | | */ |
| | | private String mpoundweight; |
| | | |
| | | /** |
| | | * 过毛人 |
| | | */ |
| | | private String mpoundname; |
| | | |
| | | /** |
| | | * 皮重时间 |
| | | */ |
| | | private String ppoundtime; |
| | | |
| | | /** |
| | | * 皮重 |
| | | */ |
| | | private String ppoundweight; |
| | | |
| | | /** |
| | | * 过皮人 |
| | | */ |
| | | private String ppoundname; |
| | | |
| | | /** |
| | | * 过磅净重 |
| | | */ |
| | | private String jpoundweight; |
| | | |
| | | /** |
| | | * 扣重 |
| | | */ |
| | | private String buckleweight; |
| | | |
| | | /** |
| | | * 毛重 |
| | | */ |
| | | private String mweight; |
| | | |
| | | /** |
| | | * 皮重 |
| | | */ |
| | | private String pweight; |
| | | |
| | | /** |
| | | * 净重 |
| | | */ |
| | | private String jweight; |
| | | |
| | | /** |
| | | * 入库仓名称 |
| | | */ |
| | | private String warename; |
| | | |
| | | /** |
| | | * 过磅图片,最多会有四张图片路径,逗号隔开 |
| | | */ |
| | | private String fileimage; |
| | | |
| | | /** |
| | | * 1未同步2已同步 |
| | | */ |
| | | private Integer types; |
| | | |
| | | /** |
| | | * This field was generated by MyBatis Generator. |
| | | * This field corresponds to the database table t_weighbridge |
| | | * |
| | | * @mbg.generated Fri Nov 24 11:06:42 CST 2023 |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | } |
| | |
| | | import com.thhy.materials.modules.biz.concret.entity.dto.WeighDto; |
| | | import com.thhy.materials.modules.biz.video.entity.TVideoNo; |
| | | import com.thhy.materials.modules.biz.weigh.dto.QueryWeighDto; |
| | | import com.thhy.materials.modules.biz.weigh.entity.TWeighbridge; |
| | | import com.thhy.materials.modules.biz.weigh.entity.WeighVo; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | Integer netWeighNew(Integer byId); |
| | | |
| | | void netWeighUpdateNew(@Param("byId") Integer byId,@Param("netWeight") double netWeight); |
| | | |
| | | List<TWeighbridge> weighbridgeList(Map<String, Object> values); |
| | | } |
| | |
| | | List<WeighDto> findAlltaskNew(Integer byId, String dictName); |
| | | |
| | | List<WeighDto> findAlltaskAllNew(String dictName); |
| | | |
| | | BasicResult weighbridgeList(Map<String, Object> values); |
| | | |
| | | } |
| | |
| | | package com.thhy.materials.modules.biz.weigh.service.impl; |
| | | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.thhy.general.common.BasicResult; |
| | | import com.thhy.materials.modules.biz.concret.entity.dto.DicetName; |
| | | import com.thhy.materials.modules.biz.concret.entity.dto.TMinxingPlant; |
| | | import com.thhy.materials.modules.biz.concret.entity.dto.WeighDto; |
| | | import com.thhy.materials.modules.biz.weigh.dto.QueryWeighDto; |
| | | import com.thhy.materials.modules.biz.weigh.entity.TWeighbridge; |
| | | import com.thhy.materials.modules.biz.weigh.entity.WeighVo; |
| | | import com.thhy.materials.modules.biz.weigh.mapper.WeighMapper; |
| | | import com.thhy.materials.modules.biz.weigh.service.WeighService; |
| | |
| | | List<WeighDto> WeighVo= weighMapper.findAlltaskAllNew(dictName); |
| | | return WeighVo; |
| | | } |
| | | |
| | | @Override |
| | | public BasicResult weighbridgeList(Map<String, Object> values) { |
| | | Integer pageSize = Integer.valueOf(values.get("pageSize").toString()); |
| | | Integer pageNum = Integer.valueOf(values.get("pageNum").toString()); |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | List<TWeighbridge> weighbridges = weighMapper.weighbridgeList(values); |
| | | PageInfo<TWeighbridge> tWeighbridgePageInfo = new PageInfo<>(weighbridges); |
| | | return BasicResult.success(tWeighbridgePageInfo); |
| | | } |
| | | } |
| | |
| | | where by_id=#{byId} |
| | | </update> |
| | | |
| | | <select id="weighbridgeList" resultType="com.thhy.materials.modules.biz.weigh.entity.TWeighbridge"> |
| | | select |
| | | weighbridge_id as weighbridgeId, |
| | | id, |
| | | code, |
| | | orgName, |
| | | supplyOrgName, |
| | | carNumber, |
| | | driverName, |
| | | matName, |
| | | matModel, |
| | | mPoundTime, |
| | | mPoundWeight, |
| | | mPoundName, |
| | | pPoundTime, |
| | | pPoundWeight, |
| | | pPoundName, |
| | | jPoundWeight, |
| | | buckleWeight, |
| | | mWeight, |
| | | pWeight, |
| | | jWeight, |
| | | wareName, |
| | | fileImage, |
| | | types |
| | | from t_weighbridge where |
| | | 1=1 |
| | | <if test="carNumber!=null and carNumber!='' "> |
| | | and carNumber like concat('%',#{carNumber},'%') |
| | | </if> |
| | | <if test="matName!=null and matName!='' "> |
| | | and matName like concat('%',#{matName},'%') |
| | | </if> |
| | | order by weighbridge_id desc |
| | | </select> |
| | | |
| | | </mapper> |