添加序列号功能
This commit is contained in:
@@ -186,6 +186,11 @@ public class Material {
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String otherfield3;
|
||||
/**
|
||||
* 2019-01-21新增字段enableSerialNumber
|
||||
*是否开启序列号
|
||||
* */
|
||||
private Boolean enableSerialNumber;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
@@ -738,4 +743,12 @@ public class Material {
|
||||
public void setOtherfield3(String otherfield3) {
|
||||
this.otherfield3 = otherfield3 == null ? null : otherfield3.trim();
|
||||
}
|
||||
|
||||
public Boolean getEnableSerialNumber() {
|
||||
return enableSerialNumber;
|
||||
}
|
||||
|
||||
public void setEnableSerialNumber(Boolean enableSerialNumber) {
|
||||
this.enableSerialNumber = enableSerialNumber;
|
||||
}
|
||||
}
|
||||
@@ -55,6 +55,11 @@ public class MaterialVo4Unit {
|
||||
private String categoryName;
|
||||
|
||||
private String materialOther;
|
||||
/**
|
||||
* 2019-01-21新增字段enableSerialNumber
|
||||
*是否开启序列号
|
||||
* */
|
||||
private Boolean enableSerialNumber;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
@@ -263,4 +268,12 @@ public class MaterialVo4Unit {
|
||||
public void setMaterialOther(String materialOther) {
|
||||
this.materialOther = materialOther;
|
||||
}
|
||||
|
||||
public Boolean getEnableSerialNumber() {
|
||||
return enableSerialNumber;
|
||||
}
|
||||
|
||||
public void setEnableSerialNumber(Boolean enableSerialNumber) {
|
||||
this.enableSerialNumber = enableSerialNumber;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
/**
|
||||
* Description
|
||||
*
|
||||
* @Author: cjl
|
||||
* @Date: 2019/1/21 17:32
|
||||
*/
|
||||
public class SerialNumberEx extends SerialNumber{
|
||||
/**
|
||||
* 商品名称
|
||||
* */
|
||||
private String materialName;
|
||||
/**
|
||||
* 创建者名称
|
||||
* */
|
||||
private String creatorName;
|
||||
/**
|
||||
* 更新者名称
|
||||
* */
|
||||
private String updaterName;
|
||||
|
||||
public String getMaterialName() {
|
||||
return materialName;
|
||||
}
|
||||
|
||||
public void setMaterialName(String materialName) {
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getCreatorName() {
|
||||
return creatorName;
|
||||
}
|
||||
|
||||
public void setCreatorName(String creatorName) {
|
||||
this.creatorName = creatorName;
|
||||
}
|
||||
|
||||
public String getUpdaterName() {
|
||||
return updaterName;
|
||||
}
|
||||
|
||||
public void setUpdaterName(String updaterName) {
|
||||
this.updaterName = updaterName;
|
||||
}
|
||||
}
|
||||
@@ -96,35 +96,5 @@ public interface MaterialMapper {
|
||||
*/
|
||||
int updateByPrimaryKey(Material record);
|
||||
|
||||
List<MaterialVo4Unit> selectByConditionMaterial(
|
||||
@Param("name") String name,
|
||||
@Param("model") String model,
|
||||
@Param("categoryId") Long categoryId,
|
||||
@Param("categoryIds") String categoryIds,
|
||||
@Param("mpList") String mpList,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByMaterial(
|
||||
@Param("name") String name,
|
||||
@Param("model") String model,
|
||||
@Param("categoryId") Long categoryId,
|
||||
@Param("categoryIds") String categoryIds,
|
||||
@Param("mpList") String mpList);
|
||||
|
||||
String findUnitName(@Param("mId") Long mId);
|
||||
|
||||
List<MaterialVo4Unit> findById(@Param("id") Long id);
|
||||
|
||||
List<MaterialVo4Unit> findBySelect();
|
||||
|
||||
int updatePriceNullByPrimaryKey(Long id);
|
||||
|
||||
int updateUnitIdNullByPrimaryKey(Long id);
|
||||
|
||||
List<MaterialVo4Unit> findByAll(
|
||||
@Param("name") String name,
|
||||
@Param("model") String model,
|
||||
@Param("categoryId") Long categoryId,
|
||||
@Param("categoryIds") String categoryIds);
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.Material;
|
||||
import com.jsh.erp.datasource.entities.MaterialVo4Unit;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description
|
||||
*
|
||||
* @Author: cjl
|
||||
* @Date: 2019/1/22 14:54
|
||||
*/
|
||||
public interface MaterialMapperEx {
|
||||
|
||||
List<MaterialVo4Unit> selectByConditionMaterial(
|
||||
@Param("name") String name,
|
||||
@Param("model") String model,
|
||||
@Param("categoryId") Long categoryId,
|
||||
@Param("categoryIds") String categoryIds,
|
||||
@Param("mpList") String mpList,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByMaterial(
|
||||
@Param("name") String name,
|
||||
@Param("model") String model,
|
||||
@Param("categoryId") Long categoryId,
|
||||
@Param("categoryIds") String categoryIds,
|
||||
@Param("mpList") String mpList);
|
||||
|
||||
String findUnitName(@Param("mId") Long mId);
|
||||
|
||||
List<MaterialVo4Unit> findById(@Param("id") Long id);
|
||||
|
||||
List<MaterialVo4Unit> findBySelect();
|
||||
|
||||
int updatePriceNullByPrimaryKey(Long id);
|
||||
|
||||
int updateUnitIdNullByPrimaryKey(Long id);
|
||||
|
||||
List<MaterialVo4Unit> findByAll(
|
||||
@Param("name") String name,
|
||||
@Param("model") String model,
|
||||
@Param("categoryId") Long categoryId,
|
||||
@Param("categoryIds") String categoryIds);
|
||||
/**
|
||||
* 通过商品名称查询商品信息
|
||||
* */
|
||||
List<Material> findByMaterialName(@Param("name") String name);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.SerialNumber;
|
||||
import com.jsh.erp.datasource.entities.SerialNumberEx;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description
|
||||
*
|
||||
* @Author: cjl
|
||||
* @Date: 2019/1/21 17:09
|
||||
*/
|
||||
public interface SerialNumberMapperEx {
|
||||
/**
|
||||
* 根据条件查询序列号列表
|
||||
* */
|
||||
List<SerialNumberEx> selectByConditionSerialNumber(@Param("serialNumber") String serialNumber, @Param("materialName") String materialName,@Param("offset") Integer offset,@Param("rows") Integer rows);
|
||||
/**
|
||||
* 根据条件查询序列号数量
|
||||
* */
|
||||
int countSerialNumber(@Param("serialNumber")String serialNumber,@Param("materialName")String materialName);
|
||||
/**
|
||||
* 通过id查询序列号复合信息
|
||||
* */
|
||||
List<SerialNumberEx> findById(Long id);
|
||||
/**
|
||||
* 通过序列号查询序列号实体信息
|
||||
* */
|
||||
List<SerialNumberEx> findBySerialNumber(@Param("serialNumber") String serialNumber);
|
||||
/**
|
||||
* 新增序列号信息
|
||||
* */
|
||||
int addSerialNumber(SerialNumberEx serialNumberEx);
|
||||
/**
|
||||
* 修改序列号信息
|
||||
* */
|
||||
int updateSerialNumber(SerialNumberEx serialNumberEx);
|
||||
}
|
||||
Reference in New Issue
Block a user