"...com/git@gitlab.ruzhoukj.com:wujipeng/relation.git" did not exist on "13c76afb616b0a0bd061db8004b69293437e49f4"
Commit d3f66440 authored by 王蔡翾's avatar 王蔡翾
Browse files

初始化

parents
<?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
<?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
<?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>
<html>
<body>
<h1>hello word!!!</h1>
<p>this is a html page</p>
</body>
</html>
\ No newline at end of file
package com.example.operation_platform;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class OperationPlatformApplicationTests {
@Test
void contextLoads() {
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment