删除数据
This commit is contained in:
@ -1,18 +0,0 @@
|
|||||||
package com.chinaunicom.zyhy.ebtp.supplier.common;
|
|
||||||
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
|
||||||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
|
||||||
|
|
||||||
@Configuration
|
|
||||||
public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void configure(HttpSecurity http) throws Exception {
|
|
||||||
http
|
|
||||||
.authorizeRequests()
|
|
||||||
.anyRequest().permitAll()
|
|
||||||
.and()
|
|
||||||
.csrf().disable();
|
|
||||||
}
|
|
||||||
}
|
|
@ -342,33 +342,39 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<sql id="taskPageSql">
|
||||||
|
select cet.id,
|
||||||
|
cet.evaluate_theme as evaluateTheme,
|
||||||
|
'单位' as tenantName,
|
||||||
|
cec.category_name as categoryName,
|
||||||
|
cet.start_time as startTime,
|
||||||
|
cet.end_time as endTime,
|
||||||
|
cet.status,
|
||||||
|
cet.dept_id as deptId,
|
||||||
|
cet.approve_status as approveStatus,
|
||||||
|
case
|
||||||
|
when cet.approve_status = 0 then '审批中'
|
||||||
|
when cet.approve_status = 1 then '通过'
|
||||||
|
when cet.approve_status = 2 then '驳回'
|
||||||
|
else '未审批' end as approveName,
|
||||||
|
case
|
||||||
|
when cet.status = 0 then '待评价'
|
||||||
|
when cet.status = 1 then '评价中'
|
||||||
|
when cet.status = 2 then '已结束' end as statusName
|
||||||
|
from cosco_evaluate_task cet
|
||||||
|
|
||||||
|
left join cosco_evaluate_task_supplier_user cetsu on cet.id=cetsu.evaluate_task_id
|
||||||
|
left join cosco_category cec on cet.category_id=cec.id
|
||||||
|
</sql>
|
||||||
|
|
||||||
<select id="selectTaskPage" parameterType="map"
|
<select id="selectTaskPage" parameterType="map"
|
||||||
resultType="com.chinaunicom.zyhy.ebtp.supplier.coscoEvaluate.vo.TaskPageVo">
|
resultType="com.chinaunicom.zyhy.ebtp.supplier.coscoEvaluate.vo.TaskPageVo">
|
||||||
select cet.id,
|
<include refid="taskPageSql"></include>
|
||||||
cet.evaluate_theme as evaluateTheme,
|
|
||||||
'单位' as tenantName,
|
|
||||||
cec.category_name as categoryName,
|
|
||||||
cet.start_time as startTime,
|
|
||||||
cet.end_time as endTime,
|
|
||||||
cet.status,
|
|
||||||
cet.dept_id as deptId,
|
|
||||||
cet.approve_status as approveStatus,
|
|
||||||
case
|
|
||||||
when cet.approve_status = 0 then '审批中'
|
|
||||||
when cet.approve_status = 1 then '通过'
|
|
||||||
when cet.approve_status = 2 then '驳回'
|
|
||||||
else '未审批' end as approveName,
|
|
||||||
case
|
|
||||||
when cet.status = 0 then '待评价'
|
|
||||||
when cet.status = 1 then '评价中'
|
|
||||||
when cet.status = 2 then '已结束' end as statusName
|
|
||||||
from cosco_evaluate_task cet
|
|
||||||
|
|
||||||
left join cosco_evaluate_task_supplier_user cetsu on cet.id=cetsu.evaluate_task_id
|
|
||||||
left join cosco_category cec on cet.category_id=cec.id
|
|
||||||
<where>
|
<where>
|
||||||
and cet.del_flag='normal'
|
and cet.del_flag='normal'
|
||||||
|
<if test="vo.deptId!=null and vo.deptId!=null">
|
||||||
|
and cet.dept_id =#{vo.deptId}
|
||||||
|
</if>
|
||||||
<if test="vo.userId!=null">
|
<if test="vo.userId!=null">
|
||||||
and cetsu.user_id=#{vo.userId}
|
and cetsu.user_id=#{vo.userId}
|
||||||
</if>
|
</if>
|
||||||
@ -381,8 +387,8 @@
|
|||||||
<if test="vo.startTime!=null and vo.endTime!=null">
|
<if test="vo.startTime!=null and vo.endTime!=null">
|
||||||
and cet.start_time between #{vo.startTime} and #{vo.endTime}
|
and cet.start_time between #{vo.startTime} and #{vo.endTime}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
group by id
|
|
||||||
order by cet.create_time desc
|
order by cet.create_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="selectMyPage"
|
<select id="selectMyPage"
|
||||||
|
Reference in New Issue
Block a user