|
|
|
|
@ -4,6 +4,7 @@ import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.ssm.filter.LoginInterceptor;
|
|
|
|
|
import com.ssm.manage.dao.BlackListDao;
|
|
|
|
|
import com.ssm.manage.dao.StaffTemporaryDao;
|
|
|
|
|
import com.ssm.manage.dto.BlackListDto;
|
|
|
|
|
import com.ssm.manage.entity.BlackList;
|
|
|
|
|
import com.ssm.manage.entity.StaffTemporary;
|
|
|
|
|
import com.ssm.manage.response.*;
|
|
|
|
|
@ -13,6 +14,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import tk.mybatis.mapper.entity.Example;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
@ -115,12 +117,21 @@ public class ZhongkongTestController {
|
|
|
|
|
|
|
|
|
|
temporary.setZhongkongDimission(0);
|
|
|
|
|
temporary.setZhongkongDimissionDate(null);
|
|
|
|
|
staffTemporaryDao.updateByPrimaryKey(temporary);
|
|
|
|
|
staffTemporaryDao.updateByPrimaryKeySelective(temporary);
|
|
|
|
|
BlackList blackList = new BlackList();
|
|
|
|
|
blackList.setIdentityCard(temporary.getIdentityCard());
|
|
|
|
|
blackList = blackListDao.select(blackList).get(0);
|
|
|
|
|
Example blackExample = new Example(BlackList.class);
|
|
|
|
|
blackExample.selectProperties("urgentName","urgentPhone","urgentRelationship","id","beisenUserId",
|
|
|
|
|
"email","sex","staffNum","staffName","mobilePhone","identityCard","storeId","inputId",
|
|
|
|
|
"inputName","inputDate","type","job","regionId","endType","endId","endName","endTime",
|
|
|
|
|
"updateTime","employeeInformationId","employmentRecordId","isBeisen","isZhongkong",
|
|
|
|
|
"blacklistReasons");
|
|
|
|
|
blackExample.createCriteria().andEqualTo(BlackListDto.Fields.identityCard, temporary.getIdentityCard());
|
|
|
|
|
blackList = blackListDao.selectByExample(blackExample).get(0);
|
|
|
|
|
// BlackList blackList = new BlackList();
|
|
|
|
|
// blackList.setIdentityCard(temporary.getIdentityCard());
|
|
|
|
|
// blackList = blackListDao.select(blackList).get(0);
|
|
|
|
|
blackList.setIsZhongkong(1);
|
|
|
|
|
blackListDao.updateByPrimaryKey(blackList);
|
|
|
|
|
blackListDao.updateByPrimaryKeySelective(blackList);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
return pageResponse;
|
|
|
|
|
|