liuxiaoxu
1 month ago
9 changed files with 0 additions and 1722 deletions
@ -1,125 +0,0 @@ |
|||
package com.ruoyi.stock.controller; |
|||
|
|||
import com.ruoyi.common.annotation.Log; |
|||
import com.ruoyi.common.core.controller.BaseController; |
|||
import com.ruoyi.common.core.domain.AjaxResult; |
|||
import com.ruoyi.common.core.page.TableDataInfo; |
|||
import com.ruoyi.common.enums.BusinessType; |
|||
import com.ruoyi.stock.domain.Stocklist; |
|||
import com.ruoyi.stock.service.IStocklistService; |
|||
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Controller; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.ResponseBody; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 库存信息Controller |
|||
* |
|||
* @author sunzhenhu |
|||
* @date 2021-09-07 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("/stock/stocklist") |
|||
public class StocklistController extends BaseController |
|||
{ |
|||
private String prefix = "stock/stocklist"; |
|||
|
|||
@Autowired |
|||
private IStocklistService stocklistService; |
|||
|
|||
@RequiresPermissions("stock:stocklist:view") |
|||
@GetMapping() |
|||
public String stocklist() |
|||
{ |
|||
return prefix + "/stocklist"; |
|||
} |
|||
|
|||
/** |
|||
* 查询库存信息列表 |
|||
*/ |
|||
@RequiresPermissions("stock:stocklist:list") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
public TableDataInfo list(Stocklist stocklist) |
|||
{ |
|||
List<Stocklist> list; |
|||
startPage(); |
|||
if (!stocklist.getYm().equals("")||!stocklist.getMachineNo().equals("")||!stocklist.getWlCode().equals("")||!stocklist.getItemname().equals("")){ |
|||
//有参数查询
|
|||
list=stocklistService.selectStocklistSearch(stocklist); |
|||
|
|||
}else { |
|||
//无参数查询
|
|||
list = stocklistService.selectStocklistList(stocklist); |
|||
|
|||
|
|||
} |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出库存信息列表 |
|||
*-- |
|||
@RequiresPermissions("stock:stocklist:export") |
|||
@Log(title = "库存信息", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ResponseBody |
|||
public AjaxResult export(Stocklist stocklist) |
|||
{ |
|||
List<Stocklist> list = stocklistService.selectStocklistSearch(stocklist); |
|||
ExcelUtil<Stocklist> util = new ExcelUtil<Stocklist>(Stocklist.class); |
|||
return util.exportExcel(list, "库存信息数据"); |
|||
} |
|||
|
|||
/** |
|||
* 新增库存信息 |
|||
*/ |
|||
@GetMapping("/add") |
|||
public String add() |
|||
{ |
|||
return prefix + "/add"; |
|||
} |
|||
|
|||
/** |
|||
* 新增保存库存信息 |
|||
*/ |
|||
@RequiresPermissions("stock:stocklist:add") |
|||
@Log(title = "库存信息", businessType = BusinessType.INSERT) |
|||
@PostMapping("/add") |
|||
@ResponseBody |
|||
public AjaxResult addSave(Stocklist stocklist) |
|||
{ |
|||
return toAjax(stocklistService.insertStocklist(stocklist)); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 修改保存库存信息 |
|||
*/ |
|||
@RequiresPermissions("stock:stocklist:edit") |
|||
@Log(title = "库存信息", businessType = BusinessType.UPDATE) |
|||
@PostMapping("/edit") |
|||
@ResponseBody |
|||
public AjaxResult editSave(Stocklist stocklist) |
|||
{ |
|||
return toAjax(stocklistService.updateStocklist(stocklist)); |
|||
} |
|||
|
|||
/** |
|||
* 删除库存信息 |
|||
*/ |
|||
@RequiresPermissions("stock:stocklist:remove") |
|||
@Log(title = "库存信息", businessType = BusinessType.DELETE) |
|||
@PostMapping( "/remove") |
|||
@ResponseBody |
|||
public AjaxResult remove(String ids) |
|||
{ |
|||
return toAjax(stocklistService.deleteStocklistByIds(ids)); |
|||
} |
|||
} |
@ -1,739 +0,0 @@ |
|||
package com.ruoyi.stock.domain; |
|||
|
|||
import com.ruoyi.common.annotation.Excel; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 库存信息对象 stocklist |
|||
* |
|||
* @author sunzhenhu |
|||
* @date 2021-09-07 |
|||
*/ |
|||
public class Stocklist extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 日期 */ |
|||
@Excel(name = "日期") |
|||
private String ym; |
|||
|
|||
/** 区域 */ |
|||
@Excel(name = "区域") |
|||
private String stockno; |
|||
|
|||
/** 料号 */ |
|||
@Excel(name = "料号") |
|||
private String wlCode; |
|||
|
|||
/** */ |
|||
private String hsCode; |
|||
|
|||
/** 名称 */ |
|||
@Excel(name = "名称") |
|||
private String Itemname; |
|||
|
|||
/** */ |
|||
private String enName; |
|||
|
|||
/** 详情 */ |
|||
@Excel(name = "详情") |
|||
private String Itemstandard; |
|||
|
|||
/** 机种号码 */ |
|||
@Excel(name = "机种号码") |
|||
private String machineNo; |
|||
|
|||
/** 单位 */ |
|||
@Excel(name = "单位") |
|||
private String stockDw; |
|||
|
|||
/** 批次 */ |
|||
private String poPiNo; |
|||
|
|||
/** */ |
|||
private BigDecimal lastQty; |
|||
|
|||
/** */ |
|||
private BigDecimal lastJuan; |
|||
|
|||
/** */ |
|||
private BigDecimal lastWeight; |
|||
|
|||
/** */ |
|||
private BigDecimal lastPrice; |
|||
|
|||
/** */ |
|||
private BigDecimal lastAmt; |
|||
|
|||
/** */ |
|||
private BigDecimal inputQty; |
|||
|
|||
/** */ |
|||
private BigDecimal inputJuan; |
|||
|
|||
/** */ |
|||
private BigDecimal inputWeight; |
|||
|
|||
/** */ |
|||
private BigDecimal inputPrice; |
|||
|
|||
/** */ |
|||
private BigDecimal inputAmt; |
|||
|
|||
/** */ |
|||
private BigDecimal outputQty; |
|||
|
|||
/** */ |
|||
private BigDecimal outputJuan; |
|||
|
|||
/** */ |
|||
private BigDecimal outputWeight; |
|||
|
|||
/** */ |
|||
private BigDecimal outputPrice; |
|||
|
|||
/** */ |
|||
private BigDecimal outputAmt; |
|||
|
|||
/** */ |
|||
private BigDecimal justQty; |
|||
|
|||
/** */ |
|||
private BigDecimal justJuan; |
|||
|
|||
/** */ |
|||
private BigDecimal justAmt; |
|||
|
|||
/** */ |
|||
private BigDecimal justWeight; |
|||
|
|||
/** 当前数量 */ |
|||
@Excel(name = "当前数量") |
|||
private BigDecimal nowQty; |
|||
|
|||
/** */ |
|||
private BigDecimal nowJuan; |
|||
|
|||
/** */ |
|||
private BigDecimal nowWeight; |
|||
|
|||
/** */ |
|||
private BigDecimal nowPrice; |
|||
|
|||
/** */ |
|||
private BigDecimal nowAmt; |
|||
|
|||
/** */ |
|||
private BigDecimal workorderQty; |
|||
|
|||
/** */ |
|||
private BigDecimal canuseQty; |
|||
|
|||
/** */ |
|||
private BigDecimal safetyStockNum; |
|||
|
|||
/** */ |
|||
private BigDecimal topStockNum; |
|||
|
|||
/** 类型 */ |
|||
@Excel(name = "类型") |
|||
private String Itemclass; |
|||
|
|||
/** */ |
|||
private String Inclass; |
|||
|
|||
/** */ |
|||
private String defaultPosition; |
|||
|
|||
/** 料号 */ |
|||
@Excel(name = "料号") |
|||
private String wldm; |
|||
|
|||
/** */ |
|||
private String PCODE; |
|||
|
|||
/** */ |
|||
private BigDecimal justPrice; |
|||
|
|||
/** */ |
|||
private String stateName; |
|||
|
|||
/** */ |
|||
private String crlName; |
|||
|
|||
/** */ |
|||
private String PNAME; |
|||
|
|||
/** */ |
|||
private BigDecimal juanM2; |
|||
|
|||
/** */ |
|||
private BigDecimal m2Price; |
|||
|
|||
/** */ |
|||
private BigDecimal nowM2Amt; |
|||
|
|||
/** */ |
|||
private String baseCode; |
|||
|
|||
/** */ |
|||
private String stockname; |
|||
|
|||
/** 机种号码 */ |
|||
@Excel(name = "机种号码") |
|||
private String pWldm; |
|||
|
|||
/** */ |
|||
private Long ID; |
|||
|
|||
public void setYm(String ym) |
|||
{ |
|||
this.ym = ym; |
|||
} |
|||
|
|||
public String getYm() |
|||
{ |
|||
return ym; |
|||
} |
|||
public void setStockno(String stockno) |
|||
{ |
|||
this.stockno = stockno; |
|||
} |
|||
|
|||
public String getStockno() |
|||
{ |
|||
return stockno; |
|||
} |
|||
public void setWlCode(String wlCode) |
|||
{ |
|||
this.wlCode = wlCode; |
|||
} |
|||
|
|||
public String getWlCode() |
|||
{ |
|||
return wlCode; |
|||
} |
|||
public void setHsCode(String hsCode) |
|||
{ |
|||
this.hsCode = hsCode; |
|||
} |
|||
|
|||
public String getHsCode() |
|||
{ |
|||
return hsCode; |
|||
} |
|||
public void setItemname(String Itemname) |
|||
{ |
|||
this.Itemname = Itemname; |
|||
} |
|||
|
|||
public String getItemname() |
|||
{ |
|||
return Itemname; |
|||
} |
|||
public void setEnName(String enName) |
|||
{ |
|||
this.enName = enName; |
|||
} |
|||
|
|||
public String getEnName() |
|||
{ |
|||
return enName; |
|||
} |
|||
public void setItemstandard(String Itemstandard) |
|||
{ |
|||
this.Itemstandard = Itemstandard; |
|||
} |
|||
|
|||
public String getItemstandard() |
|||
{ |
|||
return Itemstandard; |
|||
} |
|||
public void setMachineNo(String machineNo) |
|||
{ |
|||
this.machineNo = machineNo; |
|||
} |
|||
|
|||
public String getMachineNo() |
|||
{ |
|||
return machineNo; |
|||
} |
|||
public void setStockDw(String stockDw) |
|||
{ |
|||
this.stockDw = stockDw; |
|||
} |
|||
|
|||
public String getStockDw() |
|||
{ |
|||
return stockDw; |
|||
} |
|||
public void setPoPiNo(String poPiNo) |
|||
{ |
|||
this.poPiNo = poPiNo; |
|||
} |
|||
|
|||
public String getPoPiNo() |
|||
{ |
|||
return poPiNo; |
|||
} |
|||
public void setLastQty(BigDecimal lastQty) |
|||
{ |
|||
this.lastQty = lastQty; |
|||
} |
|||
|
|||
public BigDecimal getLastQty() |
|||
{ |
|||
return lastQty; |
|||
} |
|||
public void setLastJuan(BigDecimal lastJuan) |
|||
{ |
|||
this.lastJuan = lastJuan; |
|||
} |
|||
|
|||
public BigDecimal getLastJuan() |
|||
{ |
|||
return lastJuan; |
|||
} |
|||
public void setLastWeight(BigDecimal lastWeight) |
|||
{ |
|||
this.lastWeight = lastWeight; |
|||
} |
|||
|
|||
public BigDecimal getLastWeight() |
|||
{ |
|||
return lastWeight; |
|||
} |
|||
public void setLastPrice(BigDecimal lastPrice) |
|||
{ |
|||
this.lastPrice = lastPrice; |
|||
} |
|||
|
|||
public BigDecimal getLastPrice() |
|||
{ |
|||
return lastPrice; |
|||
} |
|||
public void setLastAmt(BigDecimal lastAmt) |
|||
{ |
|||
this.lastAmt = lastAmt; |
|||
} |
|||
|
|||
public BigDecimal getLastAmt() |
|||
{ |
|||
return lastAmt; |
|||
} |
|||
public void setInputQty(BigDecimal inputQty) |
|||
{ |
|||
this.inputQty = inputQty; |
|||
} |
|||
|
|||
public BigDecimal getInputQty() |
|||
{ |
|||
return inputQty; |
|||
} |
|||
public void setInputJuan(BigDecimal inputJuan) |
|||
{ |
|||
this.inputJuan = inputJuan; |
|||
} |
|||
|
|||
public BigDecimal getInputJuan() |
|||
{ |
|||
return inputJuan; |
|||
} |
|||
public void setInputWeight(BigDecimal inputWeight) |
|||
{ |
|||
this.inputWeight = inputWeight; |
|||
} |
|||
|
|||
public BigDecimal getInputWeight() |
|||
{ |
|||
return inputWeight; |
|||
} |
|||
public void setInputPrice(BigDecimal inputPrice) |
|||
{ |
|||
this.inputPrice = inputPrice; |
|||
} |
|||
|
|||
public BigDecimal getInputPrice() |
|||
{ |
|||
return inputPrice; |
|||
} |
|||
public void setInputAmt(BigDecimal inputAmt) |
|||
{ |
|||
this.inputAmt = inputAmt; |
|||
} |
|||
|
|||
public BigDecimal getInputAmt() |
|||
{ |
|||
return inputAmt; |
|||
} |
|||
public void setOutputQty(BigDecimal outputQty) |
|||
{ |
|||
this.outputQty = outputQty; |
|||
} |
|||
|
|||
public BigDecimal getOutputQty() |
|||
{ |
|||
return outputQty; |
|||
} |
|||
public void setOutputJuan(BigDecimal outputJuan) |
|||
{ |
|||
this.outputJuan = outputJuan; |
|||
} |
|||
|
|||
public BigDecimal getOutputJuan() |
|||
{ |
|||
return outputJuan; |
|||
} |
|||
public void setOutputWeight(BigDecimal outputWeight) |
|||
{ |
|||
this.outputWeight = outputWeight; |
|||
} |
|||
|
|||
public BigDecimal getOutputWeight() |
|||
{ |
|||
return outputWeight; |
|||
} |
|||
public void setOutputPrice(BigDecimal outputPrice) |
|||
{ |
|||
this.outputPrice = outputPrice; |
|||
} |
|||
|
|||
public BigDecimal getOutputPrice() |
|||
{ |
|||
return outputPrice; |
|||
} |
|||
public void setOutputAmt(BigDecimal outputAmt) |
|||
{ |
|||
this.outputAmt = outputAmt; |
|||
} |
|||
|
|||
public BigDecimal getOutputAmt() |
|||
{ |
|||
return outputAmt; |
|||
} |
|||
public void setJustQty(BigDecimal justQty) |
|||
{ |
|||
this.justQty = justQty; |
|||
} |
|||
|
|||
public BigDecimal getJustQty() |
|||
{ |
|||
return justQty; |
|||
} |
|||
public void setJustJuan(BigDecimal justJuan) |
|||
{ |
|||
this.justJuan = justJuan; |
|||
} |
|||
|
|||
public BigDecimal getJustJuan() |
|||
{ |
|||
return justJuan; |
|||
} |
|||
public void setJustAmt(BigDecimal justAmt) |
|||
{ |
|||
this.justAmt = justAmt; |
|||
} |
|||
|
|||
public BigDecimal getJustAmt() |
|||
{ |
|||
return justAmt; |
|||
} |
|||
public void setJustWeight(BigDecimal justWeight) |
|||
{ |
|||
this.justWeight = justWeight; |
|||
} |
|||
|
|||
public BigDecimal getJustWeight() |
|||
{ |
|||
return justWeight; |
|||
} |
|||
public void setNowQty(BigDecimal nowQty) |
|||
{ |
|||
this.nowQty = nowQty; |
|||
} |
|||
|
|||
public BigDecimal getNowQty() |
|||
{ |
|||
return nowQty; |
|||
} |
|||
public void setNowJuan(BigDecimal nowJuan) |
|||
{ |
|||
this.nowJuan = nowJuan; |
|||
} |
|||
|
|||
public BigDecimal getNowJuan() |
|||
{ |
|||
return nowJuan; |
|||
} |
|||
public void setNowWeight(BigDecimal nowWeight) |
|||
{ |
|||
this.nowWeight = nowWeight; |
|||
} |
|||
|
|||
public BigDecimal getNowWeight() |
|||
{ |
|||
return nowWeight; |
|||
} |
|||
public void setNowPrice(BigDecimal nowPrice) |
|||
{ |
|||
this.nowPrice = nowPrice; |
|||
} |
|||
|
|||
public BigDecimal getNowPrice() |
|||
{ |
|||
return nowPrice; |
|||
} |
|||
public void setNowAmt(BigDecimal nowAmt) |
|||
{ |
|||
this.nowAmt = nowAmt; |
|||
} |
|||
|
|||
public BigDecimal getNowAmt() |
|||
{ |
|||
return nowAmt; |
|||
} |
|||
public void setWorkorderQty(BigDecimal workorderQty) |
|||
{ |
|||
this.workorderQty = workorderQty; |
|||
} |
|||
|
|||
public BigDecimal getWorkorderQty() |
|||
{ |
|||
return workorderQty; |
|||
} |
|||
public void setCanuseQty(BigDecimal canuseQty) |
|||
{ |
|||
this.canuseQty = canuseQty; |
|||
} |
|||
|
|||
public BigDecimal getCanuseQty() |
|||
{ |
|||
return canuseQty; |
|||
} |
|||
public void setSafetyStockNum(BigDecimal safetyStockNum) |
|||
{ |
|||
this.safetyStockNum = safetyStockNum; |
|||
} |
|||
|
|||
public BigDecimal getSafetyStockNum() |
|||
{ |
|||
return safetyStockNum; |
|||
} |
|||
public void setTopStockNum(BigDecimal topStockNum) |
|||
{ |
|||
this.topStockNum = topStockNum; |
|||
} |
|||
|
|||
public BigDecimal getTopStockNum() |
|||
{ |
|||
return topStockNum; |
|||
} |
|||
public void setItemclass(String Itemclass) |
|||
{ |
|||
this.Itemclass = Itemclass; |
|||
} |
|||
|
|||
public String getItemclass() |
|||
{ |
|||
return Itemclass; |
|||
} |
|||
public void setInclass(String Inclass) |
|||
{ |
|||
this.Inclass = Inclass; |
|||
} |
|||
|
|||
public String getInclass() |
|||
{ |
|||
return Inclass; |
|||
} |
|||
public void setDefaultPosition(String defaultPosition) |
|||
{ |
|||
this.defaultPosition = defaultPosition; |
|||
} |
|||
|
|||
public String getDefaultPosition() |
|||
{ |
|||
return defaultPosition; |
|||
} |
|||
public void setWldm(String wldm) |
|||
{ |
|||
this.wldm = wldm; |
|||
} |
|||
|
|||
public String getWldm() |
|||
{ |
|||
return wldm; |
|||
} |
|||
public void setPCODE(String PCODE) |
|||
{ |
|||
this.PCODE = PCODE; |
|||
} |
|||
|
|||
public String getPCODE() |
|||
{ |
|||
return PCODE; |
|||
} |
|||
public void setJustPrice(BigDecimal justPrice) |
|||
{ |
|||
this.justPrice = justPrice; |
|||
} |
|||
|
|||
public BigDecimal getJustPrice() |
|||
{ |
|||
return justPrice; |
|||
} |
|||
public void setStateName(String stateName) |
|||
{ |
|||
this.stateName = stateName; |
|||
} |
|||
|
|||
public String getStateName() |
|||
{ |
|||
return stateName; |
|||
} |
|||
public void setCrlName(String crlName) |
|||
{ |
|||
this.crlName = crlName; |
|||
} |
|||
|
|||
public String getCrlName() |
|||
{ |
|||
return crlName; |
|||
} |
|||
public void setPNAME(String PNAME) |
|||
{ |
|||
this.PNAME = PNAME; |
|||
} |
|||
|
|||
public String getPNAME() |
|||
{ |
|||
return PNAME; |
|||
} |
|||
public void setJuanM2(BigDecimal juanM2) |
|||
{ |
|||
this.juanM2 = juanM2; |
|||
} |
|||
|
|||
public BigDecimal getJuanM2() |
|||
{ |
|||
return juanM2; |
|||
} |
|||
public void setM2Price(BigDecimal m2Price) |
|||
{ |
|||
this.m2Price = m2Price; |
|||
} |
|||
|
|||
public BigDecimal getM2Price() |
|||
{ |
|||
return m2Price; |
|||
} |
|||
public void setNowM2Amt(BigDecimal nowM2Amt) |
|||
{ |
|||
this.nowM2Amt = nowM2Amt; |
|||
} |
|||
|
|||
public BigDecimal getNowM2Amt() |
|||
{ |
|||
return nowM2Amt; |
|||
} |
|||
public void setBaseCode(String baseCode) |
|||
{ |
|||
this.baseCode = baseCode; |
|||
} |
|||
|
|||
public String getBaseCode() |
|||
{ |
|||
return baseCode; |
|||
} |
|||
public void setStockname(String stockname) |
|||
{ |
|||
this.stockname = stockname; |
|||
} |
|||
|
|||
public String getStockname() |
|||
{ |
|||
return stockname; |
|||
} |
|||
public void setpWldm(String pWldm) |
|||
{ |
|||
this.pWldm = pWldm; |
|||
} |
|||
|
|||
public String getpWldm() |
|||
{ |
|||
return pWldm; |
|||
} |
|||
public void setID(Long ID) |
|||
{ |
|||
this.ID = ID; |
|||
} |
|||
|
|||
public Long getID() |
|||
{ |
|||
return ID; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("ym", getYm()) |
|||
.append("stockno", getStockno()) |
|||
.append("wlCode", getWlCode()) |
|||
.append("hsCode", getHsCode()) |
|||
.append("Itemname", getItemname()) |
|||
.append("enName", getEnName()) |
|||
.append("Itemstandard", getItemstandard()) |
|||
.append("machineNo", getMachineNo()) |
|||
.append("stockDw", getStockDw()) |
|||
.append("poPiNo", getPoPiNo()) |
|||
.append("lastQty", getLastQty()) |
|||
.append("lastJuan", getLastJuan()) |
|||
.append("lastWeight", getLastWeight()) |
|||
.append("lastPrice", getLastPrice()) |
|||
.append("lastAmt", getLastAmt()) |
|||
.append("inputQty", getInputQty()) |
|||
.append("inputJuan", getInputJuan()) |
|||
.append("inputWeight", getInputWeight()) |
|||
.append("inputPrice", getInputPrice()) |
|||
.append("inputAmt", getInputAmt()) |
|||
.append("outputQty", getOutputQty()) |
|||
.append("outputJuan", getOutputJuan()) |
|||
.append("outputWeight", getOutputWeight()) |
|||
.append("outputPrice", getOutputPrice()) |
|||
.append("outputAmt", getOutputAmt()) |
|||
.append("justQty", getJustQty()) |
|||
.append("justJuan", getJustJuan()) |
|||
.append("justAmt", getJustAmt()) |
|||
.append("justWeight", getJustWeight()) |
|||
.append("nowQty", getNowQty()) |
|||
.append("nowJuan", getNowJuan()) |
|||
.append("nowWeight", getNowWeight()) |
|||
.append("nowPrice", getNowPrice()) |
|||
.append("nowAmt", getNowAmt()) |
|||
.append("workorderQty", getWorkorderQty()) |
|||
.append("canuseQty", getCanuseQty()) |
|||
.append("safetyStockNum", getSafetyStockNum()) |
|||
.append("topStockNum", getTopStockNum()) |
|||
.append("Itemclass", getItemclass()) |
|||
.append("Inclass", getInclass()) |
|||
.append("defaultPosition", getDefaultPosition()) |
|||
.append("wldm", getWldm()) |
|||
.append("PCODE", getPCODE()) |
|||
.append("justPrice", getJustPrice()) |
|||
.append("stateName", getStateName()) |
|||
.append("crlName", getCrlName()) |
|||
.append("PNAME", getPNAME()) |
|||
.append("juanM2", getJuanM2()) |
|||
.append("m2Price", getM2Price()) |
|||
.append("nowM2Amt", getNowM2Amt()) |
|||
.append("baseCode", getBaseCode()) |
|||
.append("stockname", getStockname()) |
|||
.append("pWldm", getpWldm()) |
|||
.append("ID", getID()) |
|||
.toString(); |
|||
} |
|||
} |
@ -1,70 +0,0 @@ |
|||
package com.ruoyi.stock.mapper; |
|||
|
|||
import com.ruoyi.stock.domain.Stocklist; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 库存信息Mapper接口 |
|||
* |
|||
* @author sunzhenhu |
|||
* @date 2021-09-07 |
|||
*/ |
|||
public interface StocklistMapper |
|||
{ |
|||
/** |
|||
* 查询库存信息 |
|||
* |
|||
* @param ym 库存信息ID |
|||
* @return 库存信息 |
|||
*/ |
|||
public Stocklist selectStocklistById(String ym); |
|||
|
|||
/** |
|||
* 加载库存信息列表 |
|||
* |
|||
* @param stocklist 库存信息 |
|||
* @return 库存信息集合 |
|||
*/ |
|||
public List<Stocklist> selectStocklistList(Stocklist stocklist); |
|||
|
|||
|
|||
/** |
|||
* 查询库存信息列表 |
|||
* |
|||
* @param stocklist 库存信息 |
|||
* @return 库存信息集合 |
|||
*/ |
|||
public List<Stocklist> selectStocklistSearch(Stocklist stocklist); |
|||
/** |
|||
* 新增库存信息 |
|||
* |
|||
* @param stocklist 库存信息 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertStocklist(Stocklist stocklist); |
|||
|
|||
/** |
|||
* 修改库存信息 |
|||
* |
|||
* @param stocklist 库存信息 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateStocklist(Stocklist stocklist); |
|||
|
|||
/** |
|||
* 删除库存信息 |
|||
* |
|||
* @param ym 库存信息ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteStocklistById(String ym); |
|||
|
|||
/** |
|||
* 批量删除库存信息 |
|||
* |
|||
* @param yms 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteStocklistByIds(String[] yms); |
|||
} |
@ -1,71 +0,0 @@ |
|||
package com.ruoyi.stock.service; |
|||
|
|||
import com.ruoyi.stock.domain.Stocklist; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 库存信息Service接口 |
|||
* |
|||
* @author sunzhenhu |
|||
* @date 2021-09-07 |
|||
*/ |
|||
public interface IStocklistService |
|||
{ |
|||
/** |
|||
* 查询库存信息 |
|||
* |
|||
* @param ym 库存信息ID |
|||
* @return 库存信息 |
|||
*/ |
|||
public Stocklist selectStocklistById(String ym); |
|||
|
|||
/** |
|||
* 加载库存信息列表 |
|||
* |
|||
* @param stocklist 库存信息 |
|||
* @return 库存信息集合 |
|||
*/ |
|||
public List<Stocklist> selectStocklistList(Stocklist stocklist); |
|||
|
|||
|
|||
/** |
|||
* 查询库存信息列表 |
|||
* |
|||
* @param stocklist 库存信息 |
|||
* @return 库存信息集合 |
|||
*/ |
|||
public List<Stocklist> selectStocklistSearch(Stocklist stocklist); |
|||
|
|||
/** |
|||
* 新增库存信息 |
|||
* |
|||
* @param stocklist 库存信息 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertStocklist(Stocklist stocklist); |
|||
|
|||
/** |
|||
* 修改库存信息 |
|||
* |
|||
* @param stocklist 库存信息 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateStocklist(Stocklist stocklist); |
|||
|
|||
/** |
|||
* 批量删除库存信息 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteStocklistByIds(String ids); |
|||
|
|||
/** |
|||
* 删除库存信息信息 |
|||
* |
|||
* @param ym 库存信息ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteStocklistById(String ym); |
|||
} |
@ -1,100 +0,0 @@ |
|||
package com.ruoyi.stock.service.impl; |
|||
|
|||
import com.ruoyi.common.core.text.Convert; |
|||
import com.ruoyi.stock.domain.Stocklist; |
|||
import com.ruoyi.stock.mapper.StocklistMapper; |
|||
import com.ruoyi.stock.service.IStocklistService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 库存信息Service业务层处理 |
|||
* |
|||
* @author sunzhenhu |
|||
* @date 2021-09-07 |
|||
*/ |
|||
@Service |
|||
public class StocklistServiceImpl implements IStocklistService |
|||
{ |
|||
@Autowired |
|||
private StocklistMapper stocklistMapper; |
|||
|
|||
/** |
|||
* 查询库存信息 |
|||
* |
|||
* @param ym 库存信息ID |
|||
* @return 库存信息 |
|||
*/ |
|||
@Override |
|||
public Stocklist selectStocklistById(String ym) |
|||
{ |
|||
return stocklistMapper.selectStocklistById(ym); |
|||
} |
|||
|
|||
/** |
|||
* 查询库存信息列表 |
|||
* |
|||
* @param stocklist 库存信息 |
|||
* @return 库存信息 |
|||
*/ |
|||
@Override |
|||
public List<Stocklist> selectStocklistList(Stocklist stocklist) |
|||
{ |
|||
return stocklistMapper.selectStocklistList(stocklist); |
|||
} |
|||
|
|||
@Override |
|||
public List<Stocklist> selectStocklistSearch(Stocklist stocklist) { |
|||
return stocklistMapper.selectStocklistSearch(stocklist); |
|||
} |
|||
|
|||
/** |
|||
* 新增库存信息 |
|||
* |
|||
* @param stocklist 库存信息 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertStocklist(Stocklist stocklist) |
|||
{ |
|||
return stocklistMapper.insertStocklist(stocklist); |
|||
} |
|||
|
|||
/** |
|||
* 修改库存信息 |
|||
* |
|||
* @param stocklist 库存信息 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateStocklist(Stocklist stocklist) |
|||
{ |
|||
return stocklistMapper.updateStocklist(stocklist); |
|||
} |
|||
|
|||
/** |
|||
* 删除库存信息对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteStocklistByIds(String ids) |
|||
{ |
|||
return stocklistMapper.deleteStocklistByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除库存信息信息 |
|||
* |
|||
* @param ym 库存信息ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteStocklistById(String ym) |
|||
{ |
|||
return stocklistMapper.deleteStocklistById(ym); |
|||
} |
|||
} |
@ -1,292 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ruoyi.stock.mapper.StocklistMapper"> |
|||
|
|||
<resultMap type="Stocklist" id="StocklistResult"> |
|||
<result property="ym" column="ym" /> |
|||
<result property="stockno" column="stockno" /> |
|||
<result property="wlCode" column="Wl_Code" /> |
|||
<result property="hsCode" column="HS_Code" /> |
|||
<result property="Itemname" column="Itemname" /> |
|||
<result property="enName" column="EN_NAME" /> |
|||
<result property="Itemstandard" column="Itemstandard" /> |
|||
<result property="machineNo" column="Machine_no" /> |
|||
<result property="stockDw" column="Stock_dw" /> |
|||
<result property="poPiNo" column="PO_PI_NO" /> |
|||
<result property="lastQty" column="Last_qty" /> |
|||
<result property="lastJuan" column="last_juan" /> |
|||
<result property="lastWeight" column="Last_weight" /> |
|||
<result property="lastPrice" column="Last_price" /> |
|||
<result property="lastAmt" column="Last_amt" /> |
|||
<result property="inputQty" column="input_qty" /> |
|||
<result property="inputJuan" column="input_juan" /> |
|||
<result property="inputWeight" column="input_weight" /> |
|||
<result property="inputPrice" column="Input_price" /> |
|||
<result property="inputAmt" column="Input_amt" /> |
|||
<result property="outputQty" column="output_qty" /> |
|||
<result property="outputJuan" column="output_juan" /> |
|||
<result property="outputWeight" column="output_weight" /> |
|||
<result property="outputPrice" column="Output_price" /> |
|||
<result property="outputAmt" column="Output_amt" /> |
|||
<result property="justQty" column="just_qty" /> |
|||
<result property="justJuan" column="just_juan" /> |
|||
<result property="justAmt" column="just_amt" /> |
|||
<result property="justWeight" column="Just_weight" /> |
|||
<result property="nowQty" column="now_qty" /> |
|||
<result property="nowJuan" column="now_juan" /> |
|||
<result property="nowWeight" column="Now_weight" /> |
|||
<result property="nowPrice" column="now_price" /> |
|||
<result property="nowAmt" column="now_amt" /> |
|||
<result property="workorderQty" column="Workorder_qty" /> |
|||
<result property="canuseQty" column="Canuse_qty" /> |
|||
<result property="safetyStockNum" column="Safety_stock_num" /> |
|||
<result property="topStockNum" column="Top_stock_num" /> |
|||
<result property="Itemclass" column="Itemclass" /> |
|||
<result property="Inclass" column="Inclass" /> |
|||
<result property="defaultPosition" column="Default_position" /> |
|||
<result property="wldm" column="wldm" /> |
|||
<result property="PCODE" column="PCODE" /> |
|||
<result property="justPrice" column="Just_Price" /> |
|||
<result property="stateName" column="State_name" /> |
|||
<result property="crlName" column="CRL_NAME" /> |
|||
<result property="PNAME" column="PNAME" /> |
|||
<result property="juanM2" column="juan_m2" /> |
|||
<result property="m2Price" column="m2_price" /> |
|||
<result property="nowM2Amt" column="now_m2_amt" /> |
|||
<result property="baseCode" column="base_code" /> |
|||
<result property="stockname" column="stockname" /> |
|||
<result property="pWldm" column="p_wldm" /> |
|||
<result property="ID" column="ID" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectStocklistVo"> |
|||
select ym, stockno, Wl_Code, HS_Code, Itemname, EN_NAME, Itemstandard, Machine_no, Stock_dw, PO_PI_NO, Last_qty, last_juan, Last_weight, Last_price, Last_amt, input_qty, input_juan, input_weight, Input_price, Input_amt, output_qty, output_juan, output_weight, Output_price, Output_amt, just_qty, just_juan, just_amt, Just_weight, now_qty, now_juan, Now_weight, now_price, now_amt, Workorder_qty, Canuse_qty, Safety_stock_num, Top_stock_num, Itemclass, Inclass, Default_position, wldm, PCODE, Just_Price, State_name, CRL_NAME, PNAME, juan_m2, m2_price, now_m2_amt, base_code, stockname, p_wldm, ID from stocklist |
|||
</sql> |
|||
|
|||
<select id="selectStocklistList" parameterType="Stocklist" resultMap="StocklistResult"> |
|||
<include refid="selectStocklistVo"/> |
|||
<where> |
|||
<if test="ym != null and ym != ''"> and ym = #{ym}</if> |
|||
<if test="stockno != null and stockno != ''"> and stockno = #{stockno}</if> |
|||
<if test="wlCode != null and wlCode != ''"> and Wl_Code = #{wlCode}</if> |
|||
<if test="Itemname != null and Itemname != ''"> and Itemname like concat('%', #{Itemname}, '%')</if> |
|||
<if test="Itemstandard != null and Itemstandard != ''"> and Itemstandard = #{Itemstandard}</if> |
|||
<if test="machineNo != null and machineNo != ''"> and Machine_no = #{machineNo}</if> |
|||
<if test="stockDw != null and stockDw != ''"> and Stock_dw = #{stockDw}</if> |
|||
<if test="Itemclass != null and Itemclass != ''"> and Itemclass = #{Itemclass}</if> |
|||
<if test="wldm != null and wldm != ''"> and wldm = #{wldm}</if> |
|||
<if test="pWldm != null and pWldm != ''"> and p_wldm = #{pWldm}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectStocklistSearch" parameterType="Stocklist" resultMap="StocklistResult"> |
|||
<include refid="selectStocklistVo"/> |
|||
<where> |
|||
<if test="ym != null and ym != ''"> and ym = #{ym}</if> |
|||
<if test="stockno != null and stockno != ''"> and stockno = #{stockno}</if> |
|||
<if test="wlCode != null and wlCode != ''"> and Wl_Code = #{wlCode}</if> |
|||
<if test="Itemname != null and Itemname != ''"> and Itemname like concat('%', #{Itemname}, '%')</if> |
|||
<if test="Itemstandard != null and Itemstandard != ''"> and Itemstandard = #{Itemstandard}</if> |
|||
<if test="machineNo != null and machineNo != ''"> and Machine_no = #{machineNo}</if> |
|||
<if test="stockDw != null and stockDw != ''"> and Stock_dw = #{stockDw}</if> |
|||
<if test="Itemclass != null and Itemclass != ''"> and Itemclass = #{Itemclass}</if> |
|||
<if test="wldm != null and wldm != ''"> and wldm = #{wldm}</if> |
|||
<if test="pWldm != null and pWldm != ''"> and p_wldm = #{pWldm}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectStocklistById" parameterType="String" resultMap="StocklistResult"> |
|||
<include refid="selectStocklistVo"/> |
|||
where ID = #{ID} |
|||
</select> |
|||
|
|||
<insert id="insertStocklist" parameterType="Stocklist"> |
|||
insert into stocklist |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="ym != null">ym,</if> |
|||
<if test="stockno != null">stockno,</if> |
|||
<if test="wlCode != null">Wl_Code,</if> |
|||
<if test="hsCode != null">HS_Code,</if> |
|||
<if test="Itemname != null">Itemname,</if> |
|||
<if test="enName != null">EN_NAME,</if> |
|||
<if test="Itemstandard != null">Itemstandard,</if> |
|||
<if test="machineNo != null">Machine_no,</if> |
|||
<if test="stockDw != null">Stock_dw,</if> |
|||
<if test="poPiNo != null">PO_PI_NO,</if> |
|||
<if test="lastQty != null">Last_qty,</if> |
|||
<if test="lastJuan != null">last_juan,</if> |
|||
<if test="lastWeight != null">Last_weight,</if> |
|||
<if test="lastPrice != null">Last_price,</if> |
|||
<if test="lastAmt != null">Last_amt,</if> |
|||
<if test="inputQty != null">input_qty,</if> |
|||
<if test="inputJuan != null">input_juan,</if> |
|||
<if test="inputWeight != null">input_weight,</if> |
|||
<if test="inputPrice != null">Input_price,</if> |
|||
<if test="inputAmt != null">Input_amt,</if> |
|||
<if test="outputQty != null">output_qty,</if> |
|||
<if test="outputJuan != null">output_juan,</if> |
|||
<if test="outputWeight != null">output_weight,</if> |
|||
<if test="outputPrice != null">Output_price,</if> |
|||
<if test="outputAmt != null">Output_amt,</if> |
|||
<if test="justQty != null">just_qty,</if> |
|||
<if test="justJuan != null">just_juan,</if> |
|||
<if test="justAmt != null">just_amt,</if> |
|||
<if test="justWeight != null">Just_weight,</if> |
|||
<if test="nowQty != null">now_qty,</if> |
|||
<if test="nowJuan != null">now_juan,</if> |
|||
<if test="nowWeight != null">Now_weight,</if> |
|||
<if test="nowPrice != null">now_price,</if> |
|||
<if test="nowAmt != null">now_amt,</if> |
|||
<if test="workorderQty != null">Workorder_qty,</if> |
|||
<if test="canuseQty != null">Canuse_qty,</if> |
|||
<if test="safetyStockNum != null">Safety_stock_num,</if> |
|||
<if test="topStockNum != null">Top_stock_num,</if> |
|||
<if test="Itemclass != null">Itemclass,</if> |
|||
<if test="Inclass != null">Inclass,</if> |
|||
<if test="defaultPosition != null">Default_position,</if> |
|||
<if test="wldm != null">wldm,</if> |
|||
<if test="PCODE != null">PCODE,</if> |
|||
<if test="justPrice != null">Just_Price,</if> |
|||
<if test="stateName != null">State_name,</if> |
|||
<if test="crlName != null">CRL_NAME,</if> |
|||
<if test="PNAME != null">PNAME,</if> |
|||
<if test="juanM2 != null">juan_m2,</if> |
|||
<if test="m2Price != null">m2_price,</if> |
|||
<if test="nowM2Amt != null">now_m2_amt,</if> |
|||
<if test="baseCode != null">base_code,</if> |
|||
<if test="stockname != null">stockname,</if> |
|||
<if test="pWldm != null">p_wldm,</if> |
|||
<if test="ID != null">ID,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="ym != null">#{ym},</if> |
|||
<if test="stockno != null">#{stockno},</if> |
|||
<if test="wlCode != null">#{wlCode},</if> |
|||
<if test="hsCode != null">#{hsCode},</if> |
|||
<if test="Itemname != null">#{Itemname},</if> |
|||
<if test="enName != null">#{enName},</if> |
|||
<if test="Itemstandard != null">#{Itemstandard},</if> |
|||
<if test="machineNo != null">#{machineNo},</if> |
|||
<if test="stockDw != null">#{stockDw},</if> |
|||
<if test="poPiNo != null">#{poPiNo},</if> |
|||
<if test="lastQty != null">#{lastQty},</if> |
|||
<if test="lastJuan != null">#{lastJuan},</if> |
|||
<if test="lastWeight != null">#{lastWeight},</if> |
|||
<if test="lastPrice != null">#{lastPrice},</if> |
|||
<if test="lastAmt != null">#{lastAmt},</if> |
|||
<if test="inputQty != null">#{inputQty},</if> |
|||
<if test="inputJuan != null">#{inputJuan},</if> |
|||
<if test="inputWeight != null">#{inputWeight},</if> |
|||
<if test="inputPrice != null">#{inputPrice},</if> |
|||
<if test="inputAmt != null">#{inputAmt},</if> |
|||
<if test="outputQty != null">#{outputQty},</if> |
|||
<if test="outputJuan != null">#{outputJuan},</if> |
|||
<if test="outputWeight != null">#{outputWeight},</if> |
|||
<if test="outputPrice != null">#{outputPrice},</if> |
|||
<if test="outputAmt != null">#{outputAmt},</if> |
|||
<if test="justQty != null">#{justQty},</if> |
|||
<if test="justJuan != null">#{justJuan},</if> |
|||
<if test="justAmt != null">#{justAmt},</if> |
|||
<if test="justWeight != null">#{justWeight},</if> |
|||
<if test="nowQty != null">#{nowQty},</if> |
|||
<if test="nowJuan != null">#{nowJuan},</if> |
|||
<if test="nowWeight != null">#{nowWeight},</if> |
|||
<if test="nowPrice != null">#{nowPrice},</if> |
|||
<if test="nowAmt != null">#{nowAmt},</if> |
|||
<if test="workorderQty != null">#{workorderQty},</if> |
|||
<if test="canuseQty != null">#{canuseQty},</if> |
|||
<if test="safetyStockNum != null">#{safetyStockNum},</if> |
|||
<if test="topStockNum != null">#{topStockNum},</if> |
|||
<if test="Itemclass != null">#{Itemclass},</if> |
|||
<if test="Inclass != null">#{Inclass},</if> |
|||
<if test="defaultPosition != null">#{defaultPosition},</if> |
|||
<if test="wldm != null">#{wldm},</if> |
|||
<if test="PCODE != null">#{PCODE},</if> |
|||
<if test="justPrice != null">#{justPrice},</if> |
|||
<if test="stateName != null">#{stateName},</if> |
|||
<if test="crlName != null">#{crlName},</if> |
|||
<if test="PNAME != null">#{PNAME},</if> |
|||
<if test="juanM2 != null">#{juanM2},</if> |
|||
<if test="m2Price != null">#{m2Price},</if> |
|||
<if test="nowM2Amt != null">#{nowM2Amt},</if> |
|||
<if test="baseCode != null">#{baseCode},</if> |
|||
<if test="stockname != null">#{stockname},</if> |
|||
<if test="pWldm != null">#{pWldm},</if> |
|||
<if test="ID != null">#{ID},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateStocklist" parameterType="Stocklist"> |
|||
update stocklist |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="stockno != null">stockno = #{stockno},</if> |
|||
<if test="wlCode != null">Wl_Code = #{wlCode},</if> |
|||
<if test="hsCode != null">HS_Code = #{hsCode},</if> |
|||
<if test="Itemname != null">Itemname = #{Itemname},</if> |
|||
<if test="enName != null">EN_NAME = #{enName},</if> |
|||
<if test="Itemstandard != null">Itemstandard = #{Itemstandard},</if> |
|||
<if test="machineNo != null">Machine_no = #{machineNo},</if> |
|||
<if test="stockDw != null">Stock_dw = #{stockDw},</if> |
|||
<if test="poPiNo != null">PO_PI_NO = #{poPiNo},</if> |
|||
<if test="lastQty != null">Last_qty = #{lastQty},</if> |
|||
<if test="lastJuan != null">last_juan = #{lastJuan},</if> |
|||
<if test="lastWeight != null">Last_weight = #{lastWeight},</if> |
|||
<if test="lastPrice != null">Last_price = #{lastPrice},</if> |
|||
<if test="lastAmt != null">Last_amt = #{lastAmt},</if> |
|||
<if test="inputQty != null">input_qty = #{inputQty},</if> |
|||
<if test="inputJuan != null">input_juan = #{inputJuan},</if> |
|||
<if test="inputWeight != null">input_weight = #{inputWeight},</if> |
|||
<if test="inputPrice != null">Input_price = #{inputPrice},</if> |
|||
<if test="inputAmt != null">Input_amt = #{inputAmt},</if> |
|||
<if test="outputQty != null">output_qty = #{outputQty},</if> |
|||
<if test="outputJuan != null">output_juan = #{outputJuan},</if> |
|||
<if test="outputWeight != null">output_weight = #{outputWeight},</if> |
|||
<if test="outputPrice != null">Output_price = #{outputPrice},</if> |
|||
<if test="outputAmt != null">Output_amt = #{outputAmt},</if> |
|||
<if test="justQty != null">just_qty = #{justQty},</if> |
|||
<if test="justJuan != null">just_juan = #{justJuan},</if> |
|||
<if test="justAmt != null">just_amt = #{justAmt},</if> |
|||
<if test="justWeight != null">Just_weight = #{justWeight},</if> |
|||
<if test="nowQty != null">now_qty = #{nowQty},</if> |
|||
<if test="nowJuan != null">now_juan = #{nowJuan},</if> |
|||
<if test="nowWeight != null">Now_weight = #{nowWeight},</if> |
|||
<if test="nowPrice != null">now_price = #{nowPrice},</if> |
|||
<if test="nowAmt != null">now_amt = #{nowAmt},</if> |
|||
<if test="workorderQty != null">Workorder_qty = #{workorderQty},</if> |
|||
<if test="canuseQty != null">Canuse_qty = #{canuseQty},</if> |
|||
<if test="safetyStockNum != null">Safety_stock_num = #{safetyStockNum},</if> |
|||
<if test="topStockNum != null">Top_stock_num = #{topStockNum},</if> |
|||
<if test="Itemclass != null">Itemclass = #{Itemclass},</if> |
|||
<if test="Inclass != null">Inclass = #{Inclass},</if> |
|||
<if test="defaultPosition != null">Default_position = #{defaultPosition},</if> |
|||
<if test="wldm != null">wldm = #{wldm},</if> |
|||
<if test="PCODE != null">PCODE = #{PCODE},</if> |
|||
<if test="justPrice != null">Just_Price = #{justPrice},</if> |
|||
<if test="stateName != null">State_name = #{stateName},</if> |
|||
<if test="crlName != null">CRL_NAME = #{crlName},</if> |
|||
<if test="PNAME != null">PNAME = #{PNAME},</if> |
|||
<if test="juanM2 != null">juan_m2 = #{juanM2},</if> |
|||
<if test="m2Price != null">m2_price = #{m2Price},</if> |
|||
<if test="nowM2Amt != null">now_m2_amt = #{nowM2Amt},</if> |
|||
<if test="baseCode != null">base_code = #{baseCode},</if> |
|||
<if test="stockname != null">stockname = #{stockname},</if> |
|||
<if test="pWldm != null">p_wldm = #{pWldm},</if> |
|||
<if test="ID != null">ID = #{ID},</if> |
|||
</trim> |
|||
where ID = #{ID} |
|||
</update> |
|||
|
|||
<delete id="deleteStocklistById" parameterType="String"> |
|||
delete from stocklist where ID = #{ID} |
|||
</delete> |
|||
|
|||
<delete id="deleteStocklistByIds" parameterType="String"> |
|||
delete from stocklist where ID in |
|||
<foreach item="ym" collection="array" open="(" separator="," close=")"> |
|||
#{ID} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
</mapper> |
@ -1,91 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('新增库存信息')" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-stocklist-add"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">日期:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="ym" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">区域:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="stockno" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">料号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="wlCode" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="Itemname" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">详情:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="Itemstandard" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">机种号码:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="machineNo" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">单位:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="stockDw" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">当前数量:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="nowQty" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">类型:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="Itemclass" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">料号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="wldm" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">机种号码:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="pWldm" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "stock/stocklist" |
|||
$("#form-stocklist-add").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/add", $('#form-stocklist-add').serialize()); |
|||
} |
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,100 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('修改库存信息')" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-stocklist-edit" th:object="${stocklist}"> |
|||
<input name="ym" th:field="*{ym}" type="hidden"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">日期:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="ym" th:field="*{ym}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">区域:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="stockno" th:field="*{stockno}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">料号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="wlCode" th:field="*{wlCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="Itemname" th:field="*{Itemname}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">详情:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="Itemstandard" th:field="*{Itemstandard}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">机种号码:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="machineNo" th:field="*{machineNo}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">单位:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="stockDw" th:field="*{stockDw}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">当前数量:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="nowQty" th:field="*{nowQty}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">类型:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="Itemclass" th:field="*{Itemclass}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">料号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="wldm" th:field="*{wldm}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">机种号码:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="pWldm" th:field="*{pWldm}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
|
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "stock/stocklist"; |
|||
$("#form-stocklist-edit").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/edit", $('#form-stocklist-edit').serialize()); |
|||
} |
|||
} |
|||
|
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,134 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
|||
<head> |
|||
<th:block th:include="include :: header('库存信息列表')" /> |
|||
</head> |
|||
<body class="gray-bg"> |
|||
<div class="container-div"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 search-collapse"> |
|||
<form id="formId"> |
|||
<div class="select-list"> |
|||
<ul> |
|||
<li> |
|||
<label>日期:</label> |
|||
<input type="text" name="ym"/> |
|||
</li> |
|||
|
|||
<li> |
|||
<label>料号:</label> |
|||
<input type="text" name="wlCode"/> |
|||
</li> |
|||
<li> |
|||
<label>名称:</label> |
|||
<input type="text" name="Itemname"/> |
|||
</li> |
|||
|
|||
<li> |
|||
<label>机种号码:</label> |
|||
<input type="text" name="machineNo"/> |
|||
</li> |
|||
|
|||
<li> |
|||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> |
|||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
|
|||
<div class="btn-group-sm" id="toolbar" role="group"> |
|||
|
|||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="stock:stocklist:export"> |
|||
<i class="fa fa-download"></i> 导出 |
|||
</a> |
|||
</div> |
|||
<div class="col-sm-12 select-table table-striped" style="padding-bottom: 100px;"> |
|||
<table id="bootstrap-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var editFlag = [[${@permission.hasPermi('stock:stocklist:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('stock:stocklist:remove')}]]; |
|||
var prefix = ctx + "stock/stocklist"; |
|||
|
|||
$(function() { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
createUrl: prefix + "/add", |
|||
updateUrl: prefix + "/edit/{id}", |
|||
removeUrl: prefix + "/remove", |
|||
exportUrl: prefix + "/export", |
|||
modalName: "库存信息", |
|||
columns: [{ |
|||
checkbox: true |
|||
}, |
|||
{ |
|||
field: 'iD', |
|||
title: 'id', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'ym', |
|||
title: '日期' |
|||
}, |
|||
{ |
|||
field: 'stockno', |
|||
title: '区域' |
|||
}, |
|||
{ |
|||
field: 'wlCode', |
|||
title: '料号' |
|||
}, |
|||
{ |
|||
field: 'itemname', |
|||
title: '名称' |
|||
}, |
|||
{ |
|||
field: 'itemstandard', |
|||
title: '详情' |
|||
}, |
|||
{ |
|||
field: 'machineNo', |
|||
title: '机种号码' |
|||
}, |
|||
{ |
|||
field: 'stockDw', |
|||
title: '单位' |
|||
}, |
|||
{ |
|||
field: 'nowQty', |
|||
title: '当前数量' |
|||
}, |
|||
{ |
|||
field: 'itemclass', |
|||
title: '类型' |
|||
}, |
|||
{ |
|||
field: 'wldm', |
|||
title: '料号' |
|||
}, |
|||
{ |
|||
field: 'pWldm', |
|||
title: '机种号码' |
|||
} |
|||
// { |
|||
// title: '操作', |
|||
// align: 'center', |
|||
// formatter: function(value, row, index) { |
|||
// var actions = []; |
|||
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|||
// actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>'); |
|||
// return actions.join(''); |
|||
// } |
|||
// } |
|||
] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue