This commit is contained in:
陆一凡 2025-03-08 08:39:37 +08:00
commit cad2b54285
6 changed files with 460 additions and 156 deletions

View File

@ -2,11 +2,6 @@ package com.ruoyi.web.controller.app;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.ruoyi.app.domain.AppGoodsPair;
import com.ruoyi.app.domain.AppLedConfig;
import com.ruoyi.app.service.IAppLedConfigService;
import com.ruoyi.web.controller.section.EnhanceDataList;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -21,28 +16,29 @@ import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.app.domain.AppLedConfig;
import com.ruoyi.app.service.IAppLedConfigService;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
/** /**
* 请填写功能名称Controller * led显示屏设置Controller
* *
* @author ruoyi * @author ruoyi
* @date 2025-01-15 * @date 2025-03-07
*/ */
@RestController @RestController
@RequestMapping("/app/led") @RequestMapping("/app/ledconfig")
public class AppLedConfigController extends BaseController public class AppLedConfigController extends BaseController
{ {
@Autowired @Autowired
private IAppLedConfigService appLedConfigService; private IAppLedConfigService appLedConfigService;
/** /**
* 查询请填写功能名称列表 * 查询led显示屏设置列表
*/ */
@PreAuthorize("@ss.hasPermi('system:config:list')") @PreAuthorize("@ss.hasPermi('app:ledconfig:list')")
@GetMapping("/list") @GetMapping("/list")
@EnhanceDataList(entityType = AppLedConfig.class)
public TableDataInfo list(AppLedConfig appLedConfig) public TableDataInfo list(AppLedConfig appLedConfig)
{ {
startPage(); startPage();
@ -51,33 +47,33 @@ public class AppLedConfigController extends BaseController
} }
/** /**
* 导出请填写功能名称列表 * 导出led显示屏设置列表
*/ */
@PreAuthorize("@ss.hasPermi('system:config:export')") @PreAuthorize("@ss.hasPermi('app:ledconfig:export')")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) @Log(title = "led显示屏设置", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, AppLedConfig appLedConfig) public void export(HttpServletResponse response, AppLedConfig appLedConfig)
{ {
List<AppLedConfig> list = appLedConfigService.selectAppLedConfigList(appLedConfig); List<AppLedConfig> list = appLedConfigService.selectAppLedConfigList(appLedConfig);
ExcelUtil<AppLedConfig> util = new ExcelUtil<AppLedConfig>(AppLedConfig.class); ExcelUtil<AppLedConfig> util = new ExcelUtil<AppLedConfig>(AppLedConfig.class);
util.exportExcel(response, list, "【请填写功能名称】数据"); util.exportExcel(response, list, "led显示屏设置数据");
} }
/** /**
* 获取请填写功能名称详细信息 * 获取led显示屏设置详细信息
*/ */
@PreAuthorize("@ss.hasPermi('system:config:query')") @PreAuthorize("@ss.hasPermi('app:ledconfig:query')")
@GetMapping(value = "/{ledId}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("ledId") String ledId) public AjaxResult getInfo(@PathVariable("id") String id)
{ {
return success(appLedConfigService.selectAppLedConfigByLedId(ledId)); return success(appLedConfigService.selectAppLedConfigById(id));
} }
/** /**
* 新增请填写功能名称 * 新增led显示屏设置
*/ */
@PreAuthorize("@ss.hasPermi('system:config:add')") @PreAuthorize("@ss.hasPermi('app:ledconfig:add')")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) @Log(title = "led显示屏设置", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody AppLedConfig appLedConfig) public AjaxResult add(@RequestBody AppLedConfig appLedConfig)
{ {
@ -85,10 +81,10 @@ public class AppLedConfigController extends BaseController
} }
/** /**
* 修改请填写功能名称 * 修改led显示屏设置
*/ */
@PreAuthorize("@ss.hasPermi('system:config:edit')") @PreAuthorize("@ss.hasPermi('app:ledconfig:edit')")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) @Log(title = "led显示屏设置", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody AppLedConfig appLedConfig) public AjaxResult edit(@RequestBody AppLedConfig appLedConfig)
{ {
@ -96,13 +92,13 @@ public class AppLedConfigController extends BaseController
} }
/** /**
* 删除请填写功能名称 * 删除led显示屏设置
*/ */
@PreAuthorize("@ss.hasPermi('system:config:remove')") @PreAuthorize("@ss.hasPermi('app:ledconfig:remove')")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) @Log(title = "led显示屏设置", businessType = BusinessType.DELETE)
@DeleteMapping("/{ledIds}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ledIds) public AjaxResult remove(@PathVariable String[] ids)
{ {
return toAjax(appLedConfigService.deleteAppLedConfigByLedIds(ledIds)); return toAjax(appLedConfigService.deleteAppLedConfigByIds(ids));
} }
} }

View File

@ -1,38 +1,263 @@
package com.ruoyi.app.domain; package com.ruoyi.app.domain;
import com.ruoyi.common.annotation.Excel; import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity; import com.ruoyi.common.core.domain.BaseEntity;
/** /**
* 请填写功能名称对象 app_led_config * led显示屏设置对象 app_led_config
* *
* @author ruoyi * @author ruoyi
* @date 2025-01-14 * @date 2025-03-07
*/ */
public class AppLedConfig extends BaseEntity public class AppLedConfig extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 主键 */ /** 主键 */
@Excel(name = "主键") private String id;
private String ledId;
public void setLedId(String ledId) /** 屏类别 1:分拣屏 */
@Excel(name = "屏类别 1:分拣屏")
private String sType;
/** 屏编码 */
@Excel(name = "屏编码")
private String sCode;
/** 屏IP地址 */
@Excel(name = "屏IP地址")
private String sIp;
/** 屏1内容 */
@Excel(name = "屏1内容")
private String sOneContent;
/** 屏2内容 */
@Excel(name = "屏2内容")
private String sTwoContent;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String sThreeContent;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String sFourContent;
/** 物料编码 */
@Excel(name = "物料编码")
private String goodsId;
/** 消息内容 */
@Excel(name = "消息内容")
private String messageContent;
/** 数量 */
@Excel(name = "数量")
private BigDecimal quantity;
/** 单位 */
@Excel(name = "单位")
private String unit;
/** 产线 */
@Excel(name = "产线")
private String productLine;
/** 工位 */
@Excel(name = "工位")
private String station;
/** 配盘点 */
@Excel(name = "配盘点")
private String inventoryPosition;
/** 状态 */
@Excel(name = "状态")
private String goodsStatus;
/** 显示状态 */
@Excel(name = "显示状态")
private String sStatus;
public void setId(String id)
{ {
this.ledId = ledId; this.id = id;
} }
public String getLedId() public String getId()
{ {
return ledId; return id;
}
public void setsType(String sType)
{
this.sType = sType;
}
public String getsType()
{
return sType;
}
public void setsCode(String sCode)
{
this.sCode = sCode;
}
public String getsCode()
{
return sCode;
}
public void setsIp(String sIp)
{
this.sIp = sIp;
}
public String getsIp()
{
return sIp;
}
public void setsOneContent(String sOneContent)
{
this.sOneContent = sOneContent;
}
public String getsOneContent()
{
return sOneContent;
}
public void setsTwoContent(String sTwoContent)
{
this.sTwoContent = sTwoContent;
}
public String getsTwoContent()
{
return sTwoContent;
}
public void setsThreeContent(String sThreeContent)
{
this.sThreeContent = sThreeContent;
}
public String getsThreeContent()
{
return sThreeContent;
}
public void setsFourContent(String sFourContent)
{
this.sFourContent = sFourContent;
}
public String getsFourContent()
{
return sFourContent;
}
public void setGoodsId(String goodsId)
{
this.goodsId = goodsId;
}
public String getGoodsId()
{
return goodsId;
}
public void setMessageContent(String messageContent)
{
this.messageContent = messageContent;
}
public String getMessageContent()
{
return messageContent;
}
public void setQuantity(BigDecimal quantity)
{
this.quantity = quantity;
}
public BigDecimal getQuantity()
{
return quantity;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public String getUnit()
{
return unit;
}
public void setProductLine(String productLine)
{
this.productLine = productLine;
}
public String getProductLine()
{
return productLine;
}
public void setStation(String station)
{
this.station = station;
}
public String getStation()
{
return station;
}
public void setInventoryPosition(String inventoryPosition)
{
this.inventoryPosition = inventoryPosition;
}
public String getInventoryPosition()
{
return inventoryPosition;
}
public void setGoodsStatus(String goodsStatus)
{
this.goodsStatus = goodsStatus;
}
public String getGoodsStatus()
{
return goodsStatus;
}
public void setsStatus(String sStatus)
{
this.sStatus = sStatus;
}
public String getsStatus()
{
return sStatus;
} }
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("ledId", getLedId()) .append("id", getId())
.append("sType", getsType())
.append("sCode", getsCode())
.append("sIp", getsIp())
.append("sOneContent", getsOneContent())
.append("sTwoContent", getsTwoContent())
.append("sThreeContent", getsThreeContent())
.append("sFourContent", getsFourContent())
.append("goodsId", getGoodsId())
.append("messageContent", getMessageContent())
.append("quantity", getQuantity())
.append("unit", getUnit())
.append("productLine", getProductLine())
.append("station", getStation())
.append("inventoryPosition", getInventoryPosition())
.append("updateTime", getUpdateTime())
.append("goodsStatus", getGoodsStatus())
.append("sStatus", getsStatus())
.toString(); .toString();
} }
} }

View File

@ -1,62 +1,61 @@
package com.ruoyi.app.mapper; package com.ruoyi.app.mapper;
import java.util.List;
import com.ruoyi.app.domain.AppLedConfig; import com.ruoyi.app.domain.AppLedConfig;
import java.util.List;
/** /**
* 请填写功能名称Mapper接口 * led显示屏设置Mapper接口
* *
* @author ruoyi * @author ruoyi
* @date 2025-01-14 * @date 2025-03-07
*/ */
public interface AppLedConfigMapper public interface AppLedConfigMapper
{ {
/** /**
* 查询请填写功能名称 * 查询led显示屏设置
* *
* @param ledId 请填写功能名称主键 * @param id led显示屏设置主键
* @return 请填写功能名称 * @return led显示屏设置
*/ */
public AppLedConfig selectAppLedConfigByLedId(String ledId); public AppLedConfig selectAppLedConfigById(String id);
/** /**
* 查询请填写功能名称列表 * 查询led显示屏设置列表
* *
* @param appLedConfig 请填写功能名称 * @param appLedConfig led显示屏设置
* @return 请填写功能名称集合 * @return led显示屏设置集合
*/ */
public List<AppLedConfig> selectAppLedConfigList(AppLedConfig appLedConfig); public List<AppLedConfig> selectAppLedConfigList(AppLedConfig appLedConfig);
/** /**
* 新增请填写功能名称 * 新增led显示屏设置
* *
* @param appLedConfig 请填写功能名称 * @param appLedConfig led显示屏设置
* @return 结果 * @return 结果
*/ */
public int insertAppLedConfig(AppLedConfig appLedConfig); public int insertAppLedConfig(AppLedConfig appLedConfig);
/** /**
* 修改请填写功能名称 * 修改led显示屏设置
* *
* @param appLedConfig 请填写功能名称 * @param appLedConfig led显示屏设置
* @return 结果 * @return 结果
*/ */
public int updateAppLedConfig(AppLedConfig appLedConfig); public int updateAppLedConfig(AppLedConfig appLedConfig);
/** /**
* 删除请填写功能名称 * 删除led显示屏设置
* *
* @param ledId 请填写功能名称主键 * @param id led显示屏设置主键
* @return 结果 * @return 结果
*/ */
public int deleteAppLedConfigByLedId(String ledId); public int deleteAppLedConfigById(String id);
/** /**
* 批量删除请填写功能名称 * 批量删除led显示屏设置
* *
* @param ledIds 需要删除的数据主键集合 * @param ids 需要删除的数据主键集合
* @return 结果 * @return 结果
*/ */
public int deleteAppLedConfigByLedIds(String[] ledIds); public int deleteAppLedConfigByIds(String[] ids);
} }

View File

@ -1,62 +1,61 @@
package com.ruoyi.app.service; package com.ruoyi.app.service;
import java.util.List;
import com.ruoyi.app.domain.AppLedConfig; import com.ruoyi.app.domain.AppLedConfig;
import java.util.List;
/** /**
* 请填写功能名称Service接口 * led显示屏设置Service接口
* *
* @author ruoyi * @author ruoyi
* @date 2025-01-14 * @date 2025-03-07
*/ */
public interface IAppLedConfigService public interface IAppLedConfigService
{ {
/** /**
* 查询请填写功能名称 * 查询led显示屏设置
* *
* @param ledId 请填写功能名称主键 * @param id led显示屏设置主键
* @return 请填写功能名称 * @return led显示屏设置
*/ */
public AppLedConfig selectAppLedConfigByLedId(String ledId); public AppLedConfig selectAppLedConfigById(String id);
/** /**
* 查询请填写功能名称列表 * 查询led显示屏设置列表
* *
* @param appLedConfig 请填写功能名称 * @param appLedConfig led显示屏设置
* @return 请填写功能名称集合 * @return led显示屏设置集合
*/ */
public List<AppLedConfig> selectAppLedConfigList(AppLedConfig appLedConfig); public List<AppLedConfig> selectAppLedConfigList(AppLedConfig appLedConfig);
/** /**
* 新增请填写功能名称 * 新增led显示屏设置
* *
* @param appLedConfig 请填写功能名称 * @param appLedConfig led显示屏设置
* @return 结果 * @return 结果
*/ */
public int insertAppLedConfig(AppLedConfig appLedConfig); public int insertAppLedConfig(AppLedConfig appLedConfig);
/** /**
* 修改请填写功能名称 * 修改led显示屏设置
* *
* @param appLedConfig 请填写功能名称 * @param appLedConfig led显示屏设置
* @return 结果 * @return 结果
*/ */
public int updateAppLedConfig(AppLedConfig appLedConfig); public int updateAppLedConfig(AppLedConfig appLedConfig);
/** /**
* 批量删除请填写功能名称 * 批量删除led显示屏设置
* *
* @param ledIds 需要删除的请填写功能名称主键集合 * @param ids 需要删除的led显示屏设置主键集合
* @return 结果 * @return 结果
*/ */
public int deleteAppLedConfigByLedIds(String[] ledIds); public int deleteAppLedConfigByIds(String[] ids);
/** /**
* 删除请填写功能名称信息 * 删除led显示屏设置信息
* *
* @param ledId 请填写功能名称主键 * @param id led显示屏设置主键
* @return 结果 * @return 结果
*/ */
public int deleteAppLedConfigByLedId(String ledId); public int deleteAppLedConfigById(String id);
} }

View File

@ -1,18 +1,18 @@
package com.ruoyi.app.service.impl; package com.ruoyi.app.service.impl;
import java.util.List; import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.app.domain.AppLedConfig;
import com.ruoyi.app.mapper.AppLedConfigMapper;
import com.ruoyi.app.service.IAppLedConfigService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.ruoyi.app.mapper.AppLedConfigMapper;
import com.ruoyi.app.domain.AppLedConfig;
import com.ruoyi.app.service.IAppLedConfigService;
/** /**
* 请填写功能名称Service业务层处理 * led显示屏设置Service业务层处理
* *
* @author ruoyi * @author ruoyi
* @date 2025-01-14 * @date 2025-03-07
*/ */
@Service @Service
public class AppLedConfigServiceImpl implements IAppLedConfigService public class AppLedConfigServiceImpl implements IAppLedConfigService
@ -21,22 +21,22 @@ public class AppLedConfigServiceImpl implements IAppLedConfigService
private AppLedConfigMapper appLedConfigMapper; private AppLedConfigMapper appLedConfigMapper;
/** /**
* 查询请填写功能名称 * 查询led显示屏设置
* *
* @param ledId 请填写功能名称主键 * @param id led显示屏设置主键
* @return 请填写功能名称 * @return led显示屏设置
*/ */
@Override @Override
public AppLedConfig selectAppLedConfigByLedId(String ledId) public AppLedConfig selectAppLedConfigById(String id)
{ {
return appLedConfigMapper.selectAppLedConfigByLedId(ledId); return appLedConfigMapper.selectAppLedConfigById(id);
} }
/** /**
* 查询请填写功能名称列表 * 查询led显示屏设置列表
* *
* @param appLedConfig 请填写功能名称 * @param appLedConfig led显示屏设置
* @return 请填写功能名称 * @return led显示屏设置
*/ */
@Override @Override
public List<AppLedConfig> selectAppLedConfigList(AppLedConfig appLedConfig) public List<AppLedConfig> selectAppLedConfigList(AppLedConfig appLedConfig)
@ -45,9 +45,9 @@ public class AppLedConfigServiceImpl implements IAppLedConfigService
} }
/** /**
* 新增请填写功能名称 * 新增led显示屏设置
* *
* @param appLedConfig 请填写功能名称 * @param appLedConfig led显示屏设置
* @return 结果 * @return 结果
*/ */
@Override @Override
@ -57,38 +57,39 @@ public class AppLedConfigServiceImpl implements IAppLedConfigService
} }
/** /**
* 修改请填写功能名称 * 修改led显示屏设置
* *
* @param appLedConfig 请填写功能名称 * @param appLedConfig led显示屏设置
* @return 结果 * @return 结果
*/ */
@Override @Override
public int updateAppLedConfig(AppLedConfig appLedConfig) public int updateAppLedConfig(AppLedConfig appLedConfig)
{ {
appLedConfig.setUpdateTime(DateUtils.getNowDate());
return appLedConfigMapper.updateAppLedConfig(appLedConfig); return appLedConfigMapper.updateAppLedConfig(appLedConfig);
} }
/** /**
* 批量删除请填写功能名称 * 批量删除led显示屏设置
* *
* @param ledIds 需要删除的请填写功能名称主键 * @param ids 需要删除的led显示屏设置主键
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deleteAppLedConfigByLedIds(String[] ledIds) public int deleteAppLedConfigByIds(String[] ids)
{ {
return appLedConfigMapper.deleteAppLedConfigByLedIds(ledIds); return appLedConfigMapper.deleteAppLedConfigByIds(ids);
} }
/** /**
* 删除请填写功能名称信息 * 删除led显示屏设置信息
* *
* @param ledId 请填写功能名称主键 * @param id led显示屏设置主键
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deleteAppLedConfigByLedId(String ledId) public int deleteAppLedConfigById(String id)
{ {
return appLedConfigMapper.deleteAppLedConfigByLedId(ledId); return appLedConfigMapper.deleteAppLedConfigById(id);
} }
} }

View File

@ -5,49 +5,133 @@
<mapper namespace="com.ruoyi.app.mapper.AppLedConfigMapper"> <mapper namespace="com.ruoyi.app.mapper.AppLedConfigMapper">
<resultMap type="AppLedConfig" id="AppLedConfigResult"> <resultMap type="AppLedConfig" id="AppLedConfigResult">
<result property="ledId" column="led_id" /> <result property="id" column="id" />
<result property="sType" column="s_type" />
<result property="sCode" column="s_code" />
<result property="sIp" column="s_ip" />
<result property="sOneContent" column="s_one_content" />
<result property="sTwoContent" column="s_two_content" />
<result property="sThreeContent" column="s_three_content" />
<result property="sFourContent" column="s_four_content" />
<result property="goodsId" column="goods_id" />
<result property="messageContent" column="message_content" />
<result property="quantity" column="quantity" />
<result property="unit" column="unit" />
<result property="productLine" column="product_line" />
<result property="station" column="station" />
<result property="inventoryPosition" column="inventory_position" />
<result property="updateTime" column="update_time" />
<result property="goodsStatus" column="goods_status" />
<result property="sStatus" column="s_status" />
</resultMap> </resultMap>
<sql id="selectAppLedConfigVo"> <sql id="selectAppLedConfigVo">
select led_id from app_led_config select id, s_type, s_code, s_ip, s_one_content, s_two_content, s_three_content, s_four_content, goods_id, message_content, quantity, unit, product_line, station, inventory_position, update_time, goods_status, s_status from app_led_config
</sql> </sql>
<select id="selectAppLedConfigList" parameterType="AppLedConfig" resultMap="AppLedConfigResult"> <select id="selectAppLedConfigList" parameterType="AppLedConfig" resultMap="AppLedConfigResult">
<include refid="selectAppLedConfigVo"/> <include refid="selectAppLedConfigVo"/>
<where> <where>
<if test="sType != null and sType != ''"> and s_type = #{sType}</if>
<if test="sCode != null and sCode != ''"> and s_code = #{sCode}</if>
<if test="sIp != null and sIp != ''"> and s_ip = #{sIp}</if>
<if test="sOneContent != null and sOneContent != ''"> and s_one_content = #{sOneContent}</if>
<if test="sTwoContent != null and sTwoContent != ''"> and s_two_content = #{sTwoContent}</if>
<if test="sThreeContent != null and sThreeContent != ''"> and s_three_content = #{sThreeContent}</if>
<if test="sFourContent != null and sFourContent != ''"> and s_four_content = #{sFourContent}</if>
<if test="goodsId != null and goodsId != ''"> and goods_id = #{goodsId}</if>
<if test="messageContent != null and messageContent != ''"> and message_content = #{messageContent}</if>
<if test="quantity != null "> and quantity = #{quantity}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="productLine != null and productLine != ''"> and product_line = #{productLine}</if>
<if test="station != null and station != ''"> and station = #{station}</if>
<if test="inventoryPosition != null and inventoryPosition != ''"> and inventory_position = #{inventoryPosition}</if>
<if test="goodsStatus != null and goodsStatus != ''"> and goods_status = #{goodsStatus}</if>
<if test="sStatus != null and sStatus != ''"> and s_status = #{sStatus}</if>
</where> </where>
</select> </select>
<select id="selectAppLedConfigByLedId" parameterType="String" resultMap="AppLedConfigResult"> <select id="selectAppLedConfigById" parameterType="String" resultMap="AppLedConfigResult">
<include refid="selectAppLedConfigVo"/> <include refid="selectAppLedConfigVo"/>
where led_id = #{ledId} where id = #{id}
</select> </select>
<insert id="insertAppLedConfig" parameterType="AppLedConfig"> <insert id="insertAppLedConfig" parameterType="AppLedConfig">
insert into app_led_config insert into app_led_config
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ledId != null">led_id,</if> <if test="id != null">id,</if>
<if test="sType != null">s_type,</if>
<if test="sCode != null">s_code,</if>
<if test="sIp != null">s_ip,</if>
<if test="sOneContent != null">s_one_content,</if>
<if test="sTwoContent != null">s_two_content,</if>
<if test="sThreeContent != null">s_three_content,</if>
<if test="sFourContent != null">s_four_content,</if>
<if test="goodsId != null">goods_id,</if>
<if test="messageContent != null">message_content,</if>
<if test="quantity != null">quantity,</if>
<if test="unit != null">unit,</if>
<if test="productLine != null">product_line,</if>
<if test="station != null">station,</if>
<if test="inventoryPosition != null">inventory_position,</if>
<if test="updateTime != null">update_time,</if>
<if test="goodsStatus != null">goods_status,</if>
<if test="sStatus != null">s_status,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ledId != null">#{ledId},</if> <if test="id != null">#{id},</if>
<if test="sType != null">#{sType},</if>
<if test="sCode != null">#{sCode},</if>
<if test="sIp != null">#{sIp},</if>
<if test="sOneContent != null">#{sOneContent},</if>
<if test="sTwoContent != null">#{sTwoContent},</if>
<if test="sThreeContent != null">#{sThreeContent},</if>
<if test="sFourContent != null">#{sFourContent},</if>
<if test="goodsId != null">#{goodsId},</if>
<if test="messageContent != null">#{messageContent},</if>
<if test="quantity != null">#{quantity},</if>
<if test="unit != null">#{unit},</if>
<if test="productLine != null">#{productLine},</if>
<if test="station != null">#{station},</if>
<if test="inventoryPosition != null">#{inventoryPosition},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="goodsStatus != null">#{goodsStatus},</if>
<if test="sStatus != null">#{sStatus},</if>
</trim> </trim>
</insert> </insert>
<update id="updateAppLedConfig" parameterType="AppLedConfig"> <update id="updateAppLedConfig" parameterType="AppLedConfig">
update app_led_config update app_led_config
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="sType != null">s_type = #{sType},</if>
<if test="sCode != null">s_code = #{sCode},</if>
<if test="sIp != null">s_ip = #{sIp},</if>
<if test="sOneContent != null">s_one_content = #{sOneContent},</if>
<if test="sTwoContent != null">s_two_content = #{sTwoContent},</if>
<if test="sThreeContent != null">s_three_content = #{sThreeContent},</if>
<if test="sFourContent != null">s_four_content = #{sFourContent},</if>
<if test="goodsId != null">goods_id = #{goodsId},</if>
<if test="messageContent != null">message_content = #{messageContent},</if>
<if test="quantity != null">quantity = #{quantity},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="productLine != null">product_line = #{productLine},</if>
<if test="station != null">station = #{station},</if>
<if test="inventoryPosition != null">inventory_position = #{inventoryPosition},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="goodsStatus != null">goods_status = #{goodsStatus},</if>
<if test="sStatus != null">s_status = #{sStatus},</if>
</trim> </trim>
where led_id = #{ledId} where id = #{id}
</update> </update>
<delete id="deleteAppLedConfigByLedId" parameterType="String"> <delete id="deleteAppLedConfigById" parameterType="String">
delete from app_led_config where led_id = #{ledId} delete from app_led_config where id = #{id}
</delete> </delete>
<delete id="deleteAppLedConfigByLedIds" parameterType="String"> <delete id="deleteAppLedConfigByIds" parameterType="String">
delete from app_led_config where led_id in delete from app_led_config where id in
<foreach item="ledId" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{ledId} #{id}
</foreach> </foreach>
</delete> </delete>
</mapper> </mapper>