ServiceArea sa = new ServiceArea(); sa.setQuestionnaire_id(questionnaire.getId()); sa.setStatus(0); for (String s : questionnaire.getService_area()) { sa.setId(SysUtil.getUUID()); sa.setarea_id(s); serviceAreaService.insertServiceArea(sa); }<mapper namespace="com.mapper.ServiceAreaMapper"> <insert id="insertServiceArea" > insert into service_area(id,area_id,questionnaire_id,status) values(#{id},#{area_id},#{questionnaire_id},#{status}) </insert> </mapper>
添加回答
举报
0/150
提交
取消