Commit 428a17f7 authored by suichenguang's avatar suichenguang

修改标记制证数据状态

parent 75411afb
package com.yxproject.start.api;
import com.yxproject.start.service.PreproPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("updateState")
public class UpdateStateApi {
@Autowired
PreproPersonService preproPersonService;
@RequestMapping("updateS")
public boolean updateState(@RequestParam(value = "state") String state,@RequestParam(value = "acceptNo") String acceptNo){
preproPersonService.uploadState(state,acceptNo);
return true;
}
}
package com.yxproject.start.mapper;
import com.yxproject.start.entity.PreproPersonEntity;
import com.yxproject.start.entity.SysPermission;
import org.apache.ibatis.annotations.Insert;
import java.util.List;
/**
* 导入xml
*/
public interface ImportXmlMapper {
@Insert("INSERT INTO ")
public void addPreproPerson(List<PreproPersonEntity> preproPersonEntity);
}
......@@ -2,11 +2,8 @@ package com.yxproject.start.mapper;
import com.yxproject.start.entity.PersonPostEntity;
import org.apache.ibatis.annotations.*;
import org.omg.CORBA.PUBLIC_MEMBER;
import java.util.List;
import java.util.List;
/**
* @auther zhangyusheng
......
package com.yxproject.start.mapper;
import com.yxproject.start.entity.PreproPersonEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.*;
import java.util.List;
......@@ -34,4 +31,9 @@ public interface PreproPersonMapper {
"and files.SOURCE_FILE_NAME =#{oldFile} and NEW_FILES.NEW_FILE_NAME = #{newFile}" +
"and PREPRO_PERSON.SSXQDM =#{SSXQDM} and PREPRO_PERSON.state =#{} ")
public List<PreproPersonEntity> selectPreproPerson(String uploadNo,String IDCard,String oldFile,String newFile,String SSXQDM,String cardType,String state,String uploadDate);
/*修改标记制证数据状态*/
@Update("UPDATE PREPRO_PERSON SET STATE = #{state} WHERE JMSFZSLH=#{acceptNo}")
public boolean updateState (@Param("state")String state, @Param("acceptNo") String acceptNo);
}
......@@ -20,4 +20,5 @@ public interface PersonPostService {
public boolean updateIsPost(String fileId,String creatTime);
public boolean savePersonPost(List<PersonPostEntity> personPostEntities);
}
......@@ -6,4 +6,6 @@ package com.yxproject.start.service;
*/
public interface PreproPersonService {
public boolean uploadState(String acceptNo,String state);
}
......@@ -14,4 +14,9 @@ public class PreproPersonServiceImpl implements PreproPersonService {
@Autowired
private PreproPersonMapper preproPersonMapper;
@Override
public boolean uploadState(String acceptNo, String state) {
preproPersonMapper.updateState(acceptNo,state);
return true;
}
}
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