Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
王蔡翾
operation_platform
Commits
d3f66440
"...com/git@gitlab.ruzhoukj.com:wujipeng/relation.git" did not exist on "13c76afb616b0a0bd061db8004b69293437e49f4"
Commit
d3f66440
authored
Mar 24, 2025
by
王蔡翾
Browse files
初始化
parents
Changes
85
Hide whitespace changes
Inline
Side-by-side
src/main/resources/mapper/OperationRecordMapper.xml
0 → 100644
View file @
d3f66440
<?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.example.operation_platform.mapper.TbOperationRecordMapper"
>
<select
id=
"queryrecordList"
resultType=
"com.example.operation_platform.model.vo.OperationRecordVO"
>
select
tor.id id,
br.name robotName,
tor.content content,
top.operation_type operationType,
tor.img img,
tk.worker_name workerName,
tor.operation_date operationDate,
bs.name stationName
from
tb_operation_record tor
left join
tb_operation top
on
tor.operation_id = top.id
left join
tb_worker tk
on
tor.worker_id = tk.id
left join
bs_robot br
on
top.robot_id = br.id
left join
bs_station bs
on
top.station_id = bs.id
left join
tb_operation_job oj
on
tor.operation_job_id = oj.id
<where>
<if
test=
"operationId != null and operationId != ''"
>
and tor.operation_id= #{operationId}
</if>
<if
test=
"robotId != null and robotId != ''"
>
and top.robot_id= #{robotId}
</if>
<if
test=
"stationId != null and stationId != ''"
>
and top.station_id= #{stationId}
</if>
<if
test=
"operationJobId != null and operationJobId != ''"
>
and tor.operation_job_id= #{operationJobId}
</if>
</where>
order by tor.operation_date desc
</select>
</mapper>
\ No newline at end of file
src/main/resources/mapper/RunLogMapper.xml
0 → 100644
View file @
d3f66440
<?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.example.operation_platform.mapper.RunLogMapper"
>
<select
id=
"queryLogList"
resultType=
"com.example.operation_platform.model.vo.RunLogVO"
>
select
id id,
start_time startTime,
end_time endTime,
status status,
robot_id robotId,
station_id stationId,
run_log_num runLogNum,
type type
from
tb_run_log
<where>
<if
test=
"runLogNum != null and runLogNum != ''"
>
and run_log_num like CONCAT('%',#{runLogNum},'%')
</if>
<if
test=
"status != null and status != ''"
>
and status = #{status}
</if>
<if
test=
"robotId != null and robotId != ''"
>
and robot_id = #{robotId}
</if>
<if
test=
"stationId != null and stationId != ''"
>
and station_id = #{stationId}
</if>
</where>
</select>
</mapper>
\ No newline at end of file
src/main/resources/mapper/WorkerMapper.xml
0 → 100644
View file @
d3f66440
<?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.example.operation_platform.mapper.WorkerMapper"
>
<select
id=
"queryList"
resultType=
"com.example.operation_platform.model.vo.WorkerVO"
>
select
tw.id id,
tw.username username,
tw.worker_name workerName,
tw.phone_number phoneNumber,
typ.worker_type type,
tw.company company
from
tb_worker tw
left join
tb_workertype typ
on
tw.type = typ.id
</select>
<select
id=
"queryById"
resultType=
"com.example.operation_platform.model.vo.TermAndImgVO"
>
select
tw.term term,
tw.img img,
tw.phone_number phoneNumber
from
tb_worker tw
where
tw.id = #{id}
</select>
<select
id=
"queryByUsername"
resultType=
"com.example.operation_platform.model.vo.WorkerVO"
>
select
tw.id id,
tw.username username,
tw.worker_name workerName,
tw.phone_number phoneNumber,
typ.worker_type type
from
tb_worker tw
left join
tb_workertype typ
on
tw.type = typ.id
where
tw.username = #{username}
and
tw.password = #{password}
</select>
<update
id=
"resetPassword"
parameterType=
"com.example.operation_platform.model.vo.WorkerVO"
>
UPDATE tb_worker
SET password = "123456"
WHERE username = #{username}
</update>
<select
id=
"queryByType"
resultType=
"com.example.operation_platform.model.vo.WorkerVO"
>
select
tw.id id,
tw.worker_name workerName
from
tb_worker tw
where
tw.type = #{type}
</select>
</mapper>
src/main/resources/static/index.html
0 → 100644
View file @
d3f66440
<html>
<body>
<h1>
hello word!!!
</h1>
<p>
this is a html page
</p>
</body>
</html>
\ No newline at end of file
src/test/java/com/example/operation_platform/OperationPlatformApplicationTests.java
0 → 100644
View file @
d3f66440
package
com.example.operation_platform
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.boot.test.context.SpringBootTest
;
@SpringBootTest
class
OperationPlatformApplicationTests
{
@Test
void
contextLoads
()
{
}
}
Prev
1
2
3
4
5
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment