Browse Source

shopping commit

master
adiao 4 years ago
parent
commit
d949f49d64
  1. 16
      .idea/workspace.xml
  2. 26
      README.md
  3. 7
      src/main/resources/UserMapper.xml

16
.idea/workspace.xml

@ -10,12 +10,9 @@ @@ -10,12 +10,9 @@
</component>
<component name="ChangeListManager">
<list default="true" id="841a97d6-fb7a-4203-9936-89f5a7cbed8f" name="变更" comment="shopping commit">
<change beforePath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/example/demo3/Servlet/login.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/example/demo3/pojo/User.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/example/demo3/pojo/User.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/UserMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/UserMapper.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/webapp/login.jsp" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/webapp/login.jsp" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -210,7 +207,7 @@ @@ -210,7 +207,7 @@
<workItem from="1652831640701" duration="8942000" />
<workItem from="1652812498631" duration="5883000" />
<workItem from="1652815871388" duration="3279000" />
<workItem from="1652812440545" duration="4987000" />
<workItem from="1652812440545" duration="5865000" />
</task>
<task id="LOCAL-00001" summary="shopping commit">
<created>1652814834331</created>
@ -233,7 +230,14 @@ @@ -233,7 +230,14 @@
<option name="project" value="LOCAL" />
<updated>1652815114705</updated>
</task>
<option name="localTasksCounter" value="4" />
<task id="LOCAL-00004" summary="shopping commit">
<created>1652859761642</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1652859761642</updated>
</task>
<option name="localTasksCounter" value="5" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">

26
README.md

@ -0,0 +1,26 @@ @@ -0,0 +1,26 @@
# 数据库命令
插入数据:
···
insert into 表
value (数据1),(数据2)……
···
删除数据:
···
delete from 表
where 条件……
···
更改数据:
···
update 表
set 更改指令
where 条件……
···
查找数据:
···
select * from 表
where 条件……
···

7
src/main/resources/UserMapper.xml

@ -26,8 +26,11 @@ @@ -26,8 +26,11 @@
</select>
<select id="findAll" resultType="com.example.demo3.pojo.use">
select *
from userlist
where unnamed = #{username}, unType = #{userType}
from userlist;
</select>
<select id="addOne" resultType="com.example.demo3.pojo.use">
insert into userlist (id, img, username, userpasswd, email, react_time, iphone, order_number, consumption,
user_type) value (*);
</select>
</mapper>

Loading…
Cancel
Save