006杰信—factory更新数据
本博客的资源全部来源于传智播客。
factroy更新的执行流程和003杰信-在jsp页面输入数据,然后在oracle数据库中插入factory数据,当字段允许为空时要特殊处理差不多,
1.在jFactoryList.jsp页面选中一个要更新的数据,
2.来到更新页面,jFactoryUpdate.jsp,回显刚才选中的那个factory的数据。
3.输入要修改的数据。点击确定后来到新的action请求。onclick="formSubmit('updatefactory.action','_self');"
4.根据那个新的action的请求,来到 FactoryController类,找到@RequestMapping("/basicinfo/factory/updatefactory.action")
就是FactoryController.java里面的updatefactory方法。
1.jFactoryList.jsp页面:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAABEgAAAFXCAIAAAA+oexoAAAgAElEQVR4nO3da2xc533n8XnRwsAGTdDd5E0KIwW6C4i2GwIxmgW6WRS9YIvSi5RKxTTrlgEqWtrdjAw4bnSxRhfPSG7Nbis5lM0hNWrsWI4dUSY1lkjdHUUSTVGWGFMSKcviDIeURIr3uXAoWbLEsy/OfebMcEacy3kOvx/8YVD0kDz8z3Nmnt95zjl0SQAAAAAgOFe5NwAAAAAAFotgAwAAAEB4BBsAAAAAwiPYAAAAABAewQYAAACA8Ag2AAAAAIS3cLC5CAAAAAD2xooNAAAAAOERbAAAAAAIj2ADAAAAQHgEGwAAAADCI9gAAAAAEB7BBgAAAIDw8gg2ifv3Xjp1ZO2HHQ6ol04dSdy/V5AO0hbaQltoSzHaAgAA8pJHsPGePXkzER9NJhxQNxNx79mTBekgbaEttIW2FKMtAAAgL3kEmxdPtsfv3Zt78EWRKlm075xe8Xv3XjzZXpAO0hbaQltoSzHaAgAA8pJHsFn7YcfM53cT9+8JVPEMn5/5/O7aDzsK0kHaQltoC20pRlsAAEBeHB5sEvfvJe4xJ6MtuVactjBabNMWAACQl8UGm1ebjr7adHTbrvZtu9q37Ahu2RHc8Or+Da/uf8H33m/6hss/8yjTnMzclg+27Phgw6vvb3j1/SXelomJiZ07/23v23sPHz7c1d199WpkYmLi7l3lYeOveYN/8PUjzzxzd3KyXG0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5ErkJggg==" alt="" />
具体代码如下:
<%@ page language="java" pageEncoding="UTF-8"%>
<hr>
<font color="blue"><b>引入CSS、JS区域</b></font>
<hr> <%@ include file="../../baselist.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head> <body>
<form name="icform" method="post"> <div id="menubar">
<div id="middleMenubar">
<div id="innerMenubar">
<div id="navMenubar">
<ul> <hr>
<font color="blue"><b>按钮区域</b></font>
<hr> <li id="view"><a href="#" onclick="formSubmit('toview.action','_self');this.blur();">查看</a></li>
<li id="new"><a href="#" onclick="formSubmit('factorycreate.action','_self');this.blur();">新增</a></li>
<li id="update"><a href="#" onclick="formSubmit('jfactoryupdate.action','_self');this.blur();">修改</a></li>
<li id="delete"><a href="#" onclick="formSubmit('deleteById.action','_self');this.blur();">删除</a></li>
<li id="delete"><a href="#" onclick="formSubmit('delete.action','_self');this.blur();">批量删除</a></li>
</ul>
</div>
</div>
</div>
</div> <!-- 页面主体部分(列表等) -->
<div class="textbox" id="centerTextbox">
<div class="textbox-header">
<div class="textbox-inner-header">
<div class="textbox-title"> <hr>
<font color="blue"><b>标题</b></font>
<hr> 生产厂家列表
</div>
</div>
</div> <div> <hr>
<font color="blue"><b>列表区域</b></font>
<hr> <div class="eXtremeTable" >
<table id="ec_table" class="tableRegion" width="98%" >
<thead>
<tr>
<td class="tableHeader"><input type="checkbox" name="selid" onclick="checkAll('id',this)"></td>
<td class="tableHeader">序号</td>
<td class="tableHeader">厂家全称</td>
<td class="tableHeader">缩写</td>
<td class="tableHeader">联系人</td>
<td class="tableHeader">电话</td>
<td class="tableHeader">手机</td>
<td class="tableHeader">传真</td>
<td class="tableHeader">验货员</td> </tr>
</thead>
<tbody class="tableBody" >
<!--var="o"的意思是给datalist取个别名,之后用起来就简单了-->
<c:forEach items="${datalist}" var="o" varStatus="status">
<tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'" >
<!-- 做了一个选择框 -->
<td><input type="checkbox" name="id" value="${o.id}"/></td>
<td>${status.index+1}</td>
<td><a href="toview.action?id=${o.id}">${o.fullName}</a></td>
<td>${o.factoryName}</td>
<td>${o.contacts}</td>
<td>${o.phone }</td>
<td>${o.mobile }</td>
<td>${o.fax }</td>
<td>${o.inspector }</td> </tr>
</c:forEach> </tbody>
</table>
</div> </div> </form>
</body>
</html>
根据jfactoryupdate.action这个action请求来到FactoryController.java类。执行public String factoryupdate(String id ,Model model)方法:
//跳转到修改的页面
//根据传入的参数id来找到要修改的Factory.
@RequestMapping("/basicinfo/factory/jfactoryupdate.action")
public String factoryupdate(String id ,Model model)
{//根据id找到一个Factory,然后把这个factory传给jsp页面,然后在页面上回显数据并做修改。
//为什么取名叫做obj呢,就是为了后续拷贝的时候少做修改。
Factory obj=factoryService.get(id);
model.addAttribute("obj", obj);
return "/basicinfo/factory/jFactoryUpdate.jsp"; }
2.来到更新页面,jFactoryUpdate.jsp,
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAboAAAFjCAIAAADEpFk1AAAf6klEQVR4nO3df2wc533n8QXur0PR/hmkd73YB1wLyGdEaSzkjwIJEATt1USByqmYOI2VO3gtVT7qXDU6yrFIW6EkJKbPyhW0XZKSYBWXOA5F02Yq0RRiB1YShrLPji3ZujZil6KsH9QPyruzy19a/pr7Y3ZnZ2d2Zp4lZ5955uH7hYFALWeXO/P9zmeeZ2fJTd31/P+6+4Vn737h2f/oWD7zD89+5h+e/Q8vuL/15IX/++//9/d2HH+xpf/I9r7una8c/ZvjPS19h3f0s7CwsGi+pP5z15N1LU99cNoEgPWHuAQAIcQlAAghLgFACHEJAEKISwAQkrpmLl1ZXrhiLl1aLr6Xu3n0/DtbXn7uXuISAKqlrplLk+bSNXPpmrl03VyeNJfHijNPvHXy3q524hIAbKnrywuT5uK1lYVJc/GauXR1ZfG6ufzPC3N/3d9DXAKALXXNXJw0l66aVlwuXjUXrq0sXjYXh6/9K3EJALZUKSLNxcqysnDVXPhtsRBtXBYWik+8Ndz68yENlifeGi4sFC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mISyQSFYR8xCUSiQpCPuISiUQFIR9xiUSigpCPuEQiUUHIR1wikagg5CMukUhUEPIRl0gkKgj5iEskEhWEfMQlEokKQj7iEolEBSEfcYlEooKQj7hEIlFByEdcIpGoIOQjLpFIVBDyEZdIJCoI+YhLJBIVhHzEJRKJCkI+4hKJRAUhH3GJRKKCkI+4RGJ88MEH9tdUEPIRl0iG69evv/baa/Z/qSDkIy6RSFQQ8hGXUJ09B2cyjngRl1CaPQdnMo7YEZdIJCoI+YhLKMo7B2cyjngRl1CRPfW+fPny8ePHTSbjUABxiUSigpCPuEQiUUHIt37jkiXpS9xNhHVnncYlANSLuAQAIcQlAAghLgFACHEJAEKISwAQQlwCgBDiEgCEEJcAIIS4BAAhxCUACCEuAUAIcQkAQohLABBCXAKAEOISAIQQlwAghLgEACHEJQAIIS4BQAhxCQBCiEsAEEJcAoAQ4hIAhBCXACCEuAQAIcQlAAghLgFACHEJAEKISwAQQlwCgBDiEgCEEJcAIIS4BAAhxCUACCEuAUDI/wd/zEqJSe+r8gAAAABJRU5ErkJggg==" alt="" />
jFactoryUpdate.jsp代码如下:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../base.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<form method="post">
<!-- 隱藏域 -->
<input type="hidden" name="id" value=${obj.id}>
<div id="menubar">
<div id="middleMenubar">
<div id="innerMenubar">
<div id="navMenubar">
<ul>
<li id="save"><a href="#"
onclick="formSubmit('updatefactory.action','_self');">确定</a></li>
<li id="back"><a href="list.action">返回</a></li>
</ul>
</div>
</div>
</div>
</div> <div class="textbox" id="centerTextbox"> <div class="textbox-header">
<div class="textbox-inner-header">
<div class="textbox-title">修改厂家信息</div>
</div>
</div>
<div> <div>
<table class="commonTable" cellspacing="1">
<tr>
<td class="columnTitle_mustbe">厂家名称:</td>
<td class="tableContent"><input type="text" name="fullName" value="${obj.fullName}"/></td>
<td class="columnTitle_mustbe">厂家简称</td>
<td class="tableContent"><input type="text" name="factoryName" value="${obj.factoryName}"/></td>
</tr> <tr>
<td class="columnTitle_mustbe">联系人:</td>
<td class="tableContent"><input type="text" name="contacts" value="${obj.contacts}"/></td>
<td class="columnTitle_mustbe">电话</td>
<td class="tableContent"><input type="text" name="phone" value="${obj.phone}"/></td>
</tr>
<tr>
<td class="columnTitle_mustbe">手机</td>
<td class="tableContent"><input type="text" name="mobile" value="${obj.mobile}" /></td>
<td class="columnTitle_mustbe">传真</td>
<td class="tableContent"><input type="text" name="fax" value="${obj.fax}"/></td>
</tr> <tr>
<td class="columnTitle_mustbe">验货员</td>
<td class="tableContent"><input type="text" name="inspector" value="${obj.inspector}" /></td>
<td class="columnTitle_mustbe">排序号</td>
<td class="tableContent"><input type="text" name="orderNo" value="${obj.orderNo}"/></td>
</tr>
<tr>
<td class="columnTitle_mustbe">备注</td>
<td class="tableContent"><textarea name="cnote"
style="height:120px;">${obj.cnote}</textarea></td> </tr>
</table>
</div>
</div>
</form>
</body>
</html>
4.根据那个新的action的请求,来到 FactoryController类
package cn.itcast.jk.controller.basicinfo.factory; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import cn.itcast.jk.controller.BaseController;
import cn.itcast.jk.domain.Factory;
import cn.itcast.jk.service.FactoryService;
@Controller
public class FactoryController extends BaseController {
@Resource
FactoryService factoryService; //列表
@RequestMapping("/basicinfo/factory/list.action")
public String list(Model model)
{ List<Factory> datalist=factoryService.find(null);
model.addAttribute("datalist", datalist);//将我的数据传递到页面; return "/basicinfo/factory/jFactoryList.jsp"; } //跳转到修改的页面
//根据传入的参数id来找到要修改的Factory.
@RequestMapping("/basicinfo/factory/jfactoryupdate.action")
public String factoryupdate(String id ,Model model)
{//根据id找到一个Factory,然后把这个factory传给jsp页面,然后在页面上回显数据并做修改。
//为什么取名叫做obj呢,就是为了后续拷贝的时候少做修改。
Factory obj=factoryService.get(id);
model.addAttribute("obj", obj);
return "/basicinfo/factory/jFactoryUpdate.jsp"; }
//保存新修改的数据
@RequestMapping("/basicinfo/factory/updatefactory.action")
public String updatefactory(Factory factory)
{
factoryService.update(factory);
return "redirect:/basicinfo/factory/list.action"; } }
factoryService.update(factory);就是执行BaseDaoImpl.java代码
package cn.itcast.jk.dao.impl; import java.io.Serializable;
import java.util.List;
import java.util.Map; import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired; import cn.itcast.jk.dao.BaseDao;
import cn.itcast.jk.pagination.Page; public abstract class BaseDaoImpl<T> extends SqlSessionDaoSupport implements BaseDao<T>{
@Autowired
//mybatis-spring 1.0无需此方法;mybatis-spring1.2必须注入。
public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory){
super.setSqlSessionFactory(sqlSessionFactory);
}
private String ns; //命名空间
public String getNs() {
return ns;
}
public void setNs(String ns) {
this.ns = ns;
} public List<T> findPage(Page page){
List<T> oList = this.getSqlSession().selectList(ns + ".findPage", page);
return oList;
} public List<T> find(Map map) {
List<T> oList = this.getSqlSession().selectList(ns + ".find", map);
return oList;
}
public T get(Serializable id) {
return this.getSqlSession().selectOne(ns + ".get", id);
} public void insert(T entity) {
this.getSqlSession().insert(ns + ".insert", entity);
} public void update(T entity) {
this.getSqlSession().update(ns + ".update", entity);
} public void deleteById(Serializable id) {
this.getSqlSession().delete(ns + ".deleteById", id);
} public void delete(Serializable[] ids) {
this.getSqlSession().delete(ns + ".delete", ids);
}
}
执行FactoryMapper.xml里面的update。
FactoryMapper.xml代码:
<?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="cn.itcast.jk.mapper">
<!-- factory_c表的映射 -->
<resultMap type="cn.itcast.jk.domain.Factory" id="factoryRM" >
<id property="id" column="FACTORY_ID"/>
<result property="fullName" column="FULL_NAME"/>
<result property="factoryName" column="FACTORY_NAME"/>
<result property="contacts" column="CONTACTS"/>
<result property="phone" column="PHONE"/>
<result property="mobile" column="MOBILE"/>
<result property="fax" column="FAX"/>
<result property="cnote" column="CNOTE"/>
<result property="inspector" column="INSPECTOR"/>
<result property="orderNo" column="ORDER_NO"/>
<result property="createBy" column="CREATE_BY"/>
<result property="createDept" column="CREATE_DEPT"/>
<result property="createTime" column="CREATE_TIME"/> </resultMap>
<select id="find" parameterType="map" resultMap="factoryRM" > select * from factory_c where 1=1
</select> <!--
当数据库是Oracle时,如果插入的数据是空时,必须是要指定默认的参数。所以这里的设置要这么写:jdbcType=VARCHAR。
-->
<insert id="insert" parameterType="cn.itcast.jk.domain.Factory"> insert into factory_c(FACTORY_ID,FULL_NAME,FACTORY_NAME,CONTACTS,PHONE,MOBILE,FAX,CNOTE,INSPECTOR,ORDER_NO,CREATE_BY,CREATE_DEPT,CREATE_TIME) values(
#{id,jdbcType=VARCHAR},
#{fullName,jdbcType=VARCHAR},
#{factoryName,jdbcType=VARCHAR},
#{contacts,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR},
#{mobile,jdbcType=VARCHAR},
#{fax,jdbcType=VARCHAR},
#{cnote,jdbcType=VARCHAR},
#{inspector,jdbcType=VARCHAR},
#{orderNo,jdbcType=INTEGER},
#{createBy,jdbcType=VARCHAR},
#{createDept,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}
)
</insert>
<!-- 修改 动态的sql语句-->
<update id="update" parameterType="cn.itcast.jk.domain.Factory">
update factory_c
<set>
<!-- 如果 fullName不为空,就修改。-->
<if test="fullName!=null">FULL_NAME=#{fullName,jdbcType=VARCHAR},</if>
<if test="factoryName!=null">FACTORY_NAME=#{factoryName,jdbcType=VARCHAR},</if>
<if test="contacts!=null">CONTACTS=#{contacts,jdbcType=VARCHAR},</if>
<if test="phone!=null">PHONE=#{phone,jdbcType=VARCHAR},</if>
<if test="mobile!=null">MOBILE=#{mobile,jdbcType=VARCHAR},</if>
<if test="fax!=null">FAX=#{fax,jdbcType=VARCHAR},</if>
<if test="cnote!=null">CNOTE=#{cnote,jdbcType=VARCHAR},</if>
<if test="inspector!=null">INSPECTOR=#{inspector,jdbcType=VARCHAR},</if>
<if test="orderNo!=null">ORDER_NO=#{orderNo,jdbcType=INTEGER},</if>
<if test="createBy!=null">CREATE_BY=#{createBy,jdbcType=VARCHAR},</if>
<if test="createDept!=null">CREATE_DEPT=#{createDept,jdbcType=VARCHAR},</if>
<if test="createTime!=null">CREATE_TIME=#{createTime,jdbcType=TIMESTAMP},</if>
</set>
where FACTORY_ID=#{id}
</update> <!-- 查询一个数据 -->
<select id="get" parameterType="string" resultMap="factoryRM">
<!--
注意我这里写了一个factory_id=#{pid},我这么写主要是为了说明这里要传入的值并不是
factory这个类里面的属性,可以是随意的,只要是String就好。
-->
select * from factory_c where factory_id=#{pid}
</select> <!-- 删除一条的 --> <delete id="deleteById" parameterType="string">
delete from factory_c where FACTORY_ID=#{pid} </delete> <!-- 删除多条的记录 -->
<delete id="delete" parameterType="string">
delete from factory_c
where FACTORY_ID in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
006杰信—factory更新数据的更多相关文章
- 005杰信-factory删除数据
factory表的删除分为两种:单行删除,以及批量删除. 过程:在jFactoryCreate.jsp页面上两个按钮,单行删除以及批量删除.
- 007杰信-factory的启用+停用
业务需求:当有一些factory与我们不在合作时,我们不能直接删除这个公司的数据,我们采用的办法是在factory_c表增加一个字段STATE(CHAR(1)),1表示是启用,0是表示停用. 准备工作 ...
- Android 数据库管理— — —更新数据
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android=" ...
- mysql触发器的例子--插入前更新数据
本文介绍下,一个mysql触发器的例子,在数据插入前更新相关内容,有需要的朋友参考下. mysql触发器的例子,如下: view source print? 001 mysql> CREATE ...
- CRL快速开发框架系列教程三(更新数据)
本系列目录 CRL快速开发框架系列教程一(Code First数据表不需再关心) CRL快速开发框架系列教程二(基于Lambda表达式查询) CRL快速开发框架系列教程三(更新数据) CRL快速开发框 ...
- C#使用ListView更新数据出现闪烁解决办法
C#使用ListView更新数据出现闪烁解决办法 在使用vs自动控件ListView控件时候,更新里面的部分代码时候出现闪烁的情况 如图: 解决以后: 解决办法使用双缓冲:添加新类继承ListView ...
- flask+sqlite3+echarts3+ajax 异步更新数据
结构: /www | |-- /static |....|-- jquery-3.1.1.js |....|-- echarts.js(echarts3是单文件!!) | |-- /templates ...
- 使用AjaxPro实现无刷新更新数据
需求 在一个页面动态无刷新的更新后台得到的数据.要想无刷新的更新数据,需要使用Javascript能够获取后台返回的数据,然后通过第三方Javascript库(JQuery等)动态更新web页面DOM ...
- MySql使用游标Cursor循环(While)更新数据
#要修改的变量 DECLARE var_ID VARCHAR(50) DEFAULT ''; #需要修改的数据的数量 DECLARE var_UpdateCount INT; #当前循环次数 DECL ...
随机推荐
- react 调用项目中的 .html 文件
(1)将 html 文件 放于 public 文件夹下 (2)window.open('about:blank').location.href="http://localhost:3000/ ...
- ACE中TASK架构简介及简单应用
一.基础功能介绍 1.ACE_Message_Block*,Windows消息用MSG结构表示,ACE_Task中因为不能预计各种应用中消息的类型,所以ACE_Message_Block基本上可以理解 ...
- Flume日志收集系统介绍
转自:http://blog.csdn.net/a2011480169/article/details/51544664 在具体介绍本文内容之前,先给大家看一下Hadoop业务的整体开发流程: 从Ha ...
- 【laravel54】报错:No supported encrypter found (加密类未找到)
原因:配置环境未生产 key 密钥,直接cmd,进入项目根目录,执行:php artisan key:generate 即可
- C#指南,重温基础,展望远方!(7)C#结构
结构是可以包含数据成员和函数成员的数据结构,这一点与类一样:与类不同的是,结构是值类型,无需进行堆分配. 结构类型的变量直接存储结构数据,而类类型的变量存储对动态分配的对象的引用. 结构类型不支持用户 ...
- js获取当前域名的方法
一.获取当前域名 1.方法一 var domain = document.domain; 2.方法二 var domain = window.location.host; 但是获取到的domain在线 ...
- DevExpress中GridControl列转义的实现方法
/// <summary> /// CustomColumnDisplayText Helper /// </summary> /// <param name=" ...
- 产生sql语句的vba
//清除空列 Sub ClearNullMacro1() Dim j As Integer Dim colCount As Integer colCount = Cells(2, Columns.Co ...
- ngRoute 和 ui.router 的使用方法和区别
在单页面应用中要把各个分散的视图给组织起来是通过路由机制来实现的.本文主要对 AngularJS 原生的 ngRoute 路由模块和第三方路由模块 ui.router 的用法进行简单介绍,并做一个对比 ...
- [Jobdu] 题目1507:不用加减乘除做加法
题目描述: 写一个函数,求两个整数之和,要求在函数体内不得使用+.-.*./四则运算符号. 输入: 输入可能包含多个测试样例.对于每个测试案例,输入为两个整数m和n(1<=m,n<=100 ...