设备信息开发

yun-zuoyi
刘敏 6 years ago
parent 4bad223c0d
commit 17be4078be

@ -0,0 +1,43 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
/**
* @Description : WMS_
* @Reference :
* @author: amy.liu
* @date: 2019/7/29 10:39
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_FIX")
@Api("WMS设备信息")
public class WmsFix extends BaseBean{
@Column(name = "FIX_ID")
@ApiParam("设备编号")
public String fixId;
@Column(name = "FIX_MAC")
@ApiParam("设备mac地址")
public String fixMac;
@Column(name = "FIX_NAME")
@ApiParam("设备名称")
public String fixName;
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsFix;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @author: amy.liu
* @date: 2019/7/29 10:44
* @Modify:
*/
@Repository
public interface WmsFixRepository extends BaseRepository<WmsFix, Long> {
}

@ -48,6 +48,25 @@ public class WmsHqlPack {
}
/**
*
* @param wmsFix
* @return
*/
public static DdlPackBean packHqlWmsFix(WmsFix wmsFix){
DdlPackBean result = new DdlPackBean();
//查询参数封装
DdlPreparedPack.getStringRightLikerPack(wmsFix.getFixId(), "fixId", result);
DdlPreparedPack.getStringRightLikerPack(wmsFix.getFixMac(), "fixMac", result);
DdlPreparedPack.getStringRightLikerPack(wmsFix.getFixName(), "fixName", result);
getStringBuilderPack(wmsFix, result);
return result;
}
/**
*
*
* @return

Loading…
Cancel
Save